Commit 285b3672 authored by Kasimier T. Buchcik's avatar Kasimier T. Buchcik

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.
parent 64d7d123
Thu May 12 15:05:11 CEST 2005 Kasimier Buchcik <libxml2-cvs@cazic.net>
* 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 <daniel@veillard.com>
* tree.c: applied patch for replaceNode from Brent Hendricks
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment