mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2024-10-26 20:25:14 +03:00
Add explicit casts in runtest.c
Avoids integer conversion warnings with UBSan.
This commit is contained in:
parent
7abc6e6a24
commit
21217dd94c
@ -1231,7 +1231,7 @@ charactersDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *ch, int len)
|
||||
if (quiet)
|
||||
return;
|
||||
for (i = 0;(i<len) && (i < 30);i++)
|
||||
output[i] = ch[i];
|
||||
output[i] = (char) ch[i];
|
||||
output[i] = 0;
|
||||
|
||||
fprintf(SAXdebug, "SAX.characters(%s, %d)\n", output, len);
|
||||
@ -1273,7 +1273,7 @@ ignorableWhitespaceDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *ch, int len)
|
||||
if (quiet)
|
||||
return;
|
||||
for (i = 0;(i<len) && (i < 30);i++)
|
||||
output[i] = ch[i];
|
||||
output[i] = (char) ch[i];
|
||||
output[i] = 0;
|
||||
fprintf(SAXdebug, "SAX.ignorableWhitespace(%s, %d)\n", output, len);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user