Commit f983302c authored by Feng Xiao's avatar Feng Xiao Committed by GitHub

Merge pull request #2496 from xyzzyz/fix-overflow

Fix integer overflow in FastUInt32ToBufferLeft
parents 837fd6b6 4c5d3edd
......@@ -981,7 +981,7 @@ static const char two_ASCII_digits[100][2] = {
};
char* FastUInt32ToBufferLeft(uint32 u, char* buffer) {
int digits;
uint32 digits;
const char *ASCII_digits = NULL;
// The idea of this implementation is to trim the number of divides to as few
// as possible by using multiplication and subtraction rather than mod (%),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment