1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-02-24 05:57:54 +03:00

Changed the VALID_TZO macro to restrict the timezone to -840 to 840.

* xmlschemastypes.c: Changed the VALID_TZO macro to restrict
  the timezone to -840 to 840.
This commit is contained in:
Kasimier T. Buchcik 2005-05-12 13:16:01 +00:00
parent 285b36722a
commit 690a68095f
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Thu May 12 15:14:26 CEST 2005 Kasimier Buchcik <libxml2-cvs@cazic.net>
* xmlschemastypes.c: Changed the VALID_TZO macro to restrict
the timezone to -840 to 840.
Thu May 12 15:05:11 CEST 2005 Kasimier Buchcik <libxml2-cvs@cazic.net>
* xmlschemastypes.c: Applied patch from Steve Nairn (bug #303670)

View File

@ -844,7 +844,7 @@ xmlSchemaGetBuiltInListSimpleTypeItemType(xmlSchemaTypePtr type)
#define VALID_HOUR(hr) ((hr >= 0) && (hr <= 23))
#define VALID_MIN(min) ((min >= 0) && (min <= 59))
#define VALID_SEC(sec) ((sec >= 0) && (sec < 60))
#define VALID_TZO(tzo) ((tzo > -1440) && (tzo < 1440))
#define VALID_TZO(tzo) ((tzo > -840) && (tzo < 840))
#define IS_LEAP(y) \
(((y % 4 == 0) && (y % 100 != 0)) || (y % 400 == 0))