Skip to content

Commit f9ea296

Browse files
committed
Make use of PG_INT64_MAX/PG_INT64_MIN
This code was written before those symbols were introduced, but now we can simplify it.
1 parent 4548c76 commit f9ea296

File tree

1 file changed

+2
-2
lines changed
  • src/backend/utils/adt

1 file changed

+2
-2
lines changed

src/backend/utils/adt/xml.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3637,8 +3637,8 @@ map_sql_type_to_xmlschema_type(Oid typeoid, int typmod)
36373637
" <xsd:maxInclusive value=\"" INT64_FORMAT "\"/>\n"
36383638
" <xsd:minInclusive value=\"" INT64_FORMAT "\"/>\n"
36393639
" </xsd:restriction>\n",
3640-
(((uint64) 1) << (sizeof(int64) * 8 - 1)) - 1,
3641-
(((uint64) 1) << (sizeof(int64) * 8 - 1)));
3640+
PG_INT64_MAX,
3641+
PG_INT64_MIN);
36423642
break;
36433643

36443644
case FLOAT4OID:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy