]> granicus.if.org Git - postgresql/commitdiff
Fix incorrect typecast.
authorRobert Haas <rhaas@postgresql.org>
Wed, 22 Feb 2017 06:35:42 +0000 (12:05 +0530)
committerRobert Haas <rhaas@postgresql.org>
Wed, 22 Feb 2017 06:35:42 +0000 (12:05 +0530)
Ashutosh Sharma, per a report from Mithun Cy.

Discussion: http://postgr.es/m/CAD__OujgqNNnCujeFTmKpjNu+W4smS8Hbi=RcWAhf1ZUs3H4WA@mail.gmail.com

contrib/pageinspect/hashfuncs.c

index 88c807af5b29d5f419ffc9ad774e6320f6b5cc85..812a03f12145c6eacb919cd7cbd66421ff4bf169 100644 (file)
@@ -541,7 +541,7 @@ hash_metapage_info(PG_FUNCTION_ARGS)
        values[j++] = ObjectIdGetDatum((Oid) metad->hashm_procid);
 
        for (i = 0; i < HASH_MAX_SPLITPOINTS; i++)
-               spares[i] = Int64GetDatum((int8) metad->hashm_spares[i]);
+               spares[i] = Int64GetDatum((int64) metad->hashm_spares[i]);
        values[j++] = PointerGetDatum(construct_array(spares,
                                                                                                  HASH_MAX_SPLITPOINTS,
                                                                                                  INT8OID,