Details
-
Bug
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
Fully Compatible
-
ALL
-
Service arch 2020-10-19
-
0
Description
Reaching into the absl internals is dangerous.
It's unnecessary in this case, and should be avoided.
+ #include "mongo/platform/bits.h"
|
...
|
getCodePointLength
|
- return absl::base_internal::CountLeadingZeros64(~(uint64_t(charByte) << (64 - 8)));
|
+ return countLeadingZeros64(~static_cast<unsigned char>(charByte)) - (64 - 8);
|
}
|
Attachments
Issue Links
- is caused by
-
SERVER-50753 Support $indexOfBytes and $indexOfCP in SBE
-
- Closed
-