1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-01-27 14:03:36 +03:00

parser: Make XML_INPUT constants signed

Avoid conversion to unsigned which triggers (harmless) UBSan warnings.
This commit is contained in:
Nick Wellnhofer 2024-06-16 18:45:47 +02:00
parent 52d9d768a7
commit 4967277931

View File

@ -360,10 +360,10 @@ XMLPUBFUN xmlParserInputPtr
* New input API
*/
#define XML_INPUT_BUF_STATIC (1u << 1)
#define XML_INPUT_BUF_ZERO_TERMINATED (1u << 2)
#define XML_INPUT_UNZIP (1u << 3)
#define XML_INPUT_NETWORK (1u << 4)
#define XML_INPUT_BUF_STATIC (1 << 1)
#define XML_INPUT_BUF_ZERO_TERMINATED (1 << 2)
#define XML_INPUT_UNZIP (1 << 3)
#define XML_INPUT_NETWORK (1 << 4)
XMLPUBFUN int
xmlInputCreateUrl(const char *url, int flags, xmlParserInputPtr *out);