Make use of PG_INT64_MAX/PG_INT64_MIN

This code was written before those symbols were introduced, but now we
can simplify it.
This commit is contained in:
Peter Eisentraut 2021-09-22 07:31:05 +02:00
parent 4548c76738
commit f9ea296031
1 changed files with 2 additions and 2 deletions

View File

@ -3637,8 +3637,8 @@ map_sql_type_to_xmlschema_type(Oid typeoid, int typmod)
" <xsd:maxInclusive value=\"" INT64_FORMAT "\"/>\n"
" <xsd:minInclusive value=\"" INT64_FORMAT "\"/>\n"
" </xsd:restriction>\n",
(((uint64) 1) << (sizeof(int64) * 8 - 1)) - 1,
(((uint64) 1) << (sizeof(int64) * 8 - 1)));
PG_INT64_MAX,
PG_INT64_MIN);
break;
case FLOAT4OID: