From 285b36722a9044d261028168cb74601c989a110c Mon Sep 17 00:00:00 2001 From: "Kasimier T. Buchcik" Date: Thu, 12 May 2005 13:10:22 +0000 Subject: [PATCH] Applied patch from Steve Nairn (bug #303670) for "signed int" of the * xmlschemastypes.c: Applied patch from Steve Nairn (bug #303670) for "signed int" of the date-time timezone field. Silenced a warning. --- ChangeLog | 6 ++++++ xmlschemastypes.c | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index c9fbf2f9..a5c1a6a7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Thu May 12 15:05:11 CEST 2005 Kasimier Buchcik + + * xmlschemastypes.c: Applied patch from Steve Nairn (bug #303670) + for "signed int" of the date-time timezone field. Silenced + a warning. + Wed May 11 20:04:09 CEST 2005 Daniel Veillard * tree.c: applied patch for replaceNode from Brent Hendricks diff --git a/xmlschemastypes.c b/xmlschemastypes.c index f4e6a5ce..c6cc62dd 100644 --- a/xmlschemastypes.c +++ b/xmlschemastypes.c @@ -66,7 +66,8 @@ struct _xmlSchemaValDate { unsigned int min :6; /* 0 <= min <= 59 */ double sec; unsigned int tz_flag :1; /* is tzo explicitely set? */ - int tzo :11; /* -1440 <= tzo <= 1440 */ + signed int tzo :12; /* -1440 <= tzo <= 1440; + currently only -840 to +840 are needed */ }; /* Duration value */ @@ -1070,10 +1071,9 @@ _xmlSchemaParseGDay (xmlSchemaValDatePtr dt, const xmlChar **str) { */ static int _xmlSchemaParseTime (xmlSchemaValDatePtr dt, const xmlChar **str) { - const xmlChar *cur = *str; - unsigned int hour = 0; /* use temp var in case str is not xs:time */ + const xmlChar *cur = *str; int ret = 0; - unsigned int value = 0; + int value = 0; PARSE_2_DIGITS(value, cur, ret); if (ret != 0)