diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2000-09-25 14:26:28 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2000-09-25 14:26:28 +0000 |
commit | 4b0755c68b0182809a7db5b6ab1478cb2767abfb (patch) | |
tree | 6cc3005cd58b5784972ae939812bbda31c3fe220 /HTMLparser.c | |
parent | 46057e141c1b02adbf28dfaf000995cb523fc06b (diff) | |
download | libxml2-4b0755c68b0182809a7db5b6ab1478cb2767abfb.tar.gz |
- HTMLparser.c parser.c tree.c tree.h: Avoiding a few warningGNOME_PRINT_0_24
when compiling with MSC
Daniel
Diffstat (limited to 'HTMLparser.c')
-rw-r--r-- | HTMLparser.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/HTMLparser.c b/HTMLparser.c index a0719eb6..2bafa72c 100644 --- a/HTMLparser.c +++ b/HTMLparser.c @@ -1254,8 +1254,8 @@ htmlEntityValueLookup(int value) { for (i = 0;i < (sizeof(html40EntitiesTable)/ sizeof(html40EntitiesTable[0]));i++) { - if (html40EntitiesTable[i].value >= value) { - if (html40EntitiesTable[i].value > value) + if ((unsigned int) html40EntitiesTable[i].value >= value) { + if ((unsigned int) html40EntitiesTable[i].value > value) break; #ifdef DEBUG fprintf(stderr,"Found entity %s\n", html40EntitiesTable[i].name); @@ -2862,7 +2862,8 @@ htmlParseStartTag(htmlParserCtxtPtr ctxt) { } } else if (nbatts + 4 > maxatts) { maxatts *= 2; - atts = (const xmlChar **) xmlRealloc(atts, maxatts * sizeof(xmlChar *)); + atts = (const xmlChar **) xmlRealloc((void *) atts, + maxatts * sizeof(xmlChar *)); if (atts == NULL) { fprintf(stderr, "realloc of %ld byte failed\n", maxatts * (long)sizeof(xmlChar *)); |