Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+2-2
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)