diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2007-07-12 21:04:45 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2007-07-12 21:04:45 +0000 |
commit | 706754c16be1b52417dfa97840083cc1c0a886da (patch) | |
tree | 469fb9b7dbb9020043d71b7ea1257e21852b51fd /src/backend/utils/adt/xml.c | |
parent | 72c7badbabc465b3d7f2fddbabaf9cc4c14dff1a (diff) | |
download | postgresql-706754c16be1b52417dfa97840083cc1c0a886da.tar.gz postgresql-706754c16be1b52417dfa97840083cc1c0a886da.zip |
Compute max and min int8 values using unsigned arithmetic, in hopes of
suppressing Sun Studio compiler warnings. Per Stefan.
Diffstat (limited to 'src/backend/utils/adt/xml.c')
-rw-r--r-- | src/backend/utils/adt/xml.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/utils/adt/xml.c b/src/backend/utils/adt/xml.c index 2e84fac1d70..c98f98b25e2 100644 --- a/src/backend/utils/adt/xml.c +++ b/src/backend/utils/adt/xml.c @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/backend/utils/adt/xml.c,v 1.44 2007/06/06 23:00:39 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/utils/adt/xml.c,v 1.45 2007/07/12 21:04:45 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -2806,8 +2806,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", - -((INT64CONST(1) << (sizeof(int64) * 8 - 1)) + 1), - (INT64CONST(1) << (sizeof(int64) * 8 - 1))); + (((uint64) 1) << (sizeof(int64) * 8 - 1)) - 1, + (((uint64) 1) << (sizeof(int64) * 8 - 1))); break; case FLOAT4OID: |