Commit de3e728c authored by Asra Ali's avatar Asra Ali Committed by Adam Cozzette

fix ubsan warning

Signed-off-by: 's avatarAsra Ali <asraa@google.com>
parent 8b096862
......@@ -1065,10 +1065,12 @@ done:
}
char* FastInt32ToBufferLeft(int32 i, char* buffer) {
uint32 u = i;
uint32 u = 0;
if (i < 0) {
*buffer++ = '-';
u = -i;
u -= i;
} else {
u = i;
}
return FastUInt32ToBufferLeft(u, buffer);
}
......
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