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:
A. Unique TensorFlower 2020-06-10 20:48:45 -07:00 committed by TensorFlower Gardener
parent 51fe6f6acd
commit ab1531b43f

View File

@ -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);
}