diff options
author | Kasimier T. Buchcik <kbuchcik@src.gnome.org> | 2005-05-12 13:16:01 +0000 |
---|---|---|
committer | Kasimier T. Buchcik <kbuchcik@src.gnome.org> | 2005-05-12 13:16:01 +0000 |
commit | 690a68095f589248c9e962c6b5468aacb6d3aaba (patch) | |
tree | b781095c2886c6db35df7ee0d853101b4c8e9510 /xmlschemastypes.c | |
parent | 285b36722a9044d261028168cb74601c989a110c (diff) | |
download | libxml2-690a68095f589248c9e962c6b5468aacb6d3aaba.tar.gz |
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.
Diffstat (limited to 'xmlschemastypes.c')
-rw-r--r-- | xmlschemastypes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmlschemastypes.c b/xmlschemastypes.c index c6cc62dd..fce468b4 100644 --- a/xmlschemastypes.c +++ b/xmlschemastypes.c @@ -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)) |