mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
minor error cleanup for gcc-3.3.[12] compilation warnings.
* catalog.c,relaxng.c,testAutomata.c,xpointer.c,genChRanges.py, chvalid.c,include/libxml/chvalid.h,doc/examples/test1.c: minor error cleanup for gcc-3.3.[12] compilation warnings.
This commit is contained in:
@@ -368,8 +368,12 @@ for f in fkeys:
|
||||
if rg[0] == rg[1]: # single value - check equal
|
||||
pline += "((c) == 0x%x)" % rg[0]
|
||||
else: # value range
|
||||
pline += "((0x%x <= (c)) &&" % rg[0]
|
||||
pline += " ((c) <= 0x%x))" % rg[1]
|
||||
# since we are doing char, also change range ending in 0xff
|
||||
if rg[1] != 0xff:
|
||||
pline += "((0x%x <= (c)) &&" % rg[0]
|
||||
pline += " ((c) <= 0x%x))" % rg[1]
|
||||
else:
|
||||
pline += " (0x%x <= (c))" % rg[0]
|
||||
pline += ")\n"
|
||||
header.write(pline)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user