1
0
mirror of https://github.com/postgres/postgres.git synced 2025-04-27 22:56:53 +03:00

Replace uint64 use introduced in 4868e446859 in light of 595a0eab7f42.

Reported-By: Tom Lane
Discussion: https://postgr.es/m/527.1538598263@sss.pgh.pa.us
This commit is contained in:
Andres Freund 2018-10-03 13:28:14 -07:00
parent 4868e44685
commit d173652797

View File

@ -1046,9 +1046,9 @@ fmtint(long long value, char type, int forcesign, int leftjust,
/* Handle +/- */
if (dosign && adjust_sign((value < 0), forcesign, &signvalue))
uvalue = -(uint64) value;
uvalue = -(unsigned long long) value;
else
uvalue = (uint64) value;
uvalue = (unsigned long long) value;
/*
* SUS: the result of converting 0 with an explicit precision of 0 is no