v1-0001-Fix-incorrectly-defined-test128-union-in-testint1.patch
text/x-patch
Filename: v1-0001-Fix-incorrectly-defined-test128-union-in-testint1.patch
Type: text/x-patch
Part: 4
Patch
Format: format-patch
Series: patch v1-0001
Subject: Fix incorrectly defined test128 union in testint128.c.
| File | + | − |
|---|---|---|
| src/tools/testint128.c | 1 | 1 |
From 7f0a678f6536536c77b8a6aa5b7f946dee8cc71b Mon Sep 17 00:00:00 2001
From: Dean Rasheed <dean.a.rasheed@gmail.com>
Date: Sat, 21 Jun 2025 11:25:09 +0100
Subject: [PATCH v1 1/5] Fix incorrectly defined test128 union in testint128.c.
In testint128.c, the "hl" member of test128 was incorrectly defined to
be a union instead of struct, which meant that the tests were only
ever setting and checking half of each 128-bit integer value.
---
src/tools/testint128.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/tools/testint128.c b/src/tools/testint128.c
index a25631e277d..3a33230f3a6 100644
--- a/src/tools/testint128.c
+++ b/src/tools/testint128.c
@@ -36,7 +36,7 @@ typedef union
{
int128 i128;
INT128 I128;
- union
+ struct
{
#ifdef WORDS_BIGENDIAN
int64 hi;
--
2.43.0