Ensure we use the right type in printf regardless of the definition of uint64.
PiperOrigin-RevId: 315825199 Change-Id: I3bc82939b2fbc9520ce8555d678e96a109dd38b5
This commit is contained in:
parent
51fe6f6acd
commit
ab1531b43f
@ -385,7 +385,7 @@ size_t FloatToBuffer(float value, char* buffer) {
|
||||
|
||||
string FpToString(Fprint fp) {
|
||||
char buf[17];
|
||||
snprintf(buf, sizeof(buf), "%016llx", static_cast<uint64>(fp));
|
||||
snprintf(buf, sizeof(buf), "%016llx", static_cast<long long>(fp));
|
||||
return string(buf);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user