projects
/
users
/
simon
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a87568
)
Compute max and min int8 values using unsigned arithmetic, in hopes of
author
Tom Lane
<tgl@sss.pgh.pa.us>
Thu, 12 Jul 2007 21:04:45 +0000
(21:04 +0000)
committer
Tom Lane
<tgl@sss.pgh.pa.us>
Thu, 12 Jul 2007 21:04:45 +0000
(21:04 +0000)
suppressing Sun Studio compiler warnings. Per Stefan.
src/backend/utils/adt/xml.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/utils/adt/xml.c
b/src/backend/utils/adt/xml.c
index c949315ee311c546a7232d645e648d2f77dc7d05..50ba10f6f9b10de27440fbf7c809f5e39619dd82 100644
(file)
--- a/
src/backend/utils/adt/xml.c
+++ b/
src/backend/utils/adt/xml.c
@@
-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: