|
7 | 7 | * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group |
8 | 8 | * Portions Copyright (c) 1994, Regents of the University of California |
9 | 9 | * |
10 | | - * $PostgreSQL: pgsql/src/backend/utils/adt/xml.c,v 1.44 2007/06/06 23:00:39 tgl Exp $ |
| 10 | + * $PostgreSQL: pgsql/src/backend/utils/adt/xml.c,v 1.45 2007/07/12 21:04:45 tgl Exp $ |
11 | 11 | * |
12 | 12 | *------------------------------------------------------------------------- |
13 | 13 | */ |
@@ -2806,8 +2806,8 @@ map_sql_type_to_xmlschema_type(Oid typeoid, int typmod) |
2806 | 2806 | " <xsd:maxInclusive value=\""INT64_FORMAT"\"/>\n" |
2807 | 2807 | " <xsd:minInclusive value=\""INT64_FORMAT"\"/>\n" |
2808 | 2808 | " </xsd:restriction>\n", |
2809 | | --((INT64CONST(1) << (sizeof(int64)*8-1))+1), |
2810 | | - (INT64CONST(1) << (sizeof(int64)*8-1))); |
| 2809 | +(((uint64)1) << (sizeof(int64)*8-1))-1, |
| 2810 | + (((uint64)1) << (sizeof(int64)*8-1))); |
2811 | 2811 | break; |
2812 | 2812 |
|
2813 | 2813 | caseFLOAT4OID: |
|