diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2022-09-02 18:38:33 +0200 |
---|---|---|
committer | Nick Wellnhofer <wellnhofer@aevum.de> | 2022-09-02 18:44:59 +0200 |
commit | 81621b1fe4c7a0e15e2a287b3ae4a3a7bfdbee20 (patch) | |
tree | 3926bbbd6ab8a6951ef46598eae51aa399b7d8c0 /SAX2.c | |
parent | caef85633ea2cc738bf3c4c92e2c57ac0db1d303 (diff) | |
download | libxml2-81621b1fe4c7a0e15e2a287b3ae4a3a7bfdbee20.tar.gz |
Fix compiler warnings in SAX2.c
Diffstat (limited to 'SAX2.c')
-rw-r--r-- | SAX2.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1642,7 +1642,7 @@ xmlSAX2StartElement(void *ctx, const xmlChar *fullname, const xmlChar **atts) ctxt->nodemem = -1; if (ctxt->linenumbers) { if (ctxt->input != NULL) { - if (ctxt->input->line < USHRT_MAX) + if ((unsigned) ctxt->input->line < (unsigned) USHRT_MAX) ret->line = ctxt->input->line; else ret->line = USHRT_MAX; @@ -1907,7 +1907,7 @@ skip: if (ctxt->linenumbers) { if (ctxt->input != NULL) { - if (ctxt->input->line < USHRT_MAX) + if ((unsigned) ctxt->input->line < (unsigned) USHRT_MAX) ret->line = ctxt->input->line; else { ret->line = USHRT_MAX; @@ -2285,7 +2285,7 @@ xmlSAX2StartElementNs(void *ctx, } if (ctxt->linenumbers) { if (ctxt->input != NULL) { - if (ctxt->input->line < USHRT_MAX) + if ((unsigned) ctxt->input->line < (unsigned) USHRT_MAX) ret->line = ctxt->input->line; else ret->line = USHRT_MAX; @@ -2710,7 +2710,7 @@ xmlSAX2ProcessingInstruction(void *ctx, const xmlChar *target, if (ctxt->linenumbers) { if (ctxt->input != NULL) { - if (ctxt->input->line < USHRT_MAX) + if ((unsigned) ctxt->input->line < (unsigned) USHRT_MAX) ret->line = ctxt->input->line; else ret->line = USHRT_MAX; @@ -2770,7 +2770,7 @@ xmlSAX2Comment(void *ctx, const xmlChar *value) if (ret == NULL) return; if (ctxt->linenumbers) { if (ctxt->input != NULL) { - if (ctxt->input->line < USHRT_MAX) + if ((unsigned) ctxt->input->line < (unsigned) USHRT_MAX) ret->line = ctxt->input->line; else ret->line = USHRT_MAX; |