Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Replace uint64 use introduced in 4868e446859 in light of 595a0eab7f42.
authorAndres Freund <andres@anarazel.de>
Wed, 3 Oct 2018 20:28:14 +0000 (13:28 -0700)
committerAndres Freund <andres@anarazel.de>
Wed, 3 Oct 2018 20:28:14 +0000 (13:28 -0700)
Reported-By: Tom Lane
Discussion: https://postgr.es/m/527.1538598263@sss.pgh.pa.us

src/port/snprintf.c

index 872d80012401a1fb13a475fdf80b82553da68812..ef496fa4a43df8b018a7c15ca8fc989929e7c6b6 100644 (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