[libxml2] Add suffix to unsigned constant in xmlmemory.c
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] Add suffix to unsigned constant in xmlmemory.c
- Date: Tue, 25 Jan 2022 02:35:14 +0000 (UTC)
commit f4a74bf0ae6fa46ec9817536f2496f375e0f4bf4
Author: Nick Wellnhofer <wellnhofer aevum de>
Date: Tue Jan 25 02:21:05 2022 +0100
Add suffix to unsigned constant in xmlmemory.c
Avoids an integer conversion warning with UBSan.
xmlmemory.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/xmlmemory.c b/xmlmemory.c
index c51f49ae..e0b2531a 100644
--- a/xmlmemory.c
+++ b/xmlmemory.c
@@ -78,7 +78,7 @@ void xmlMallocBreakpoint(void);
* Each of the blocks allocated begin with a header containing information
*/
-#define MEMTAG 0x5aa5
+#define MEMTAG 0x5aa5U
#define MALLOC_TYPE 1
#define REALLOC_TYPE 2
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]