* [PATCH] test: self: Fix testing test on 32bit architectures
@ 2023-10-18 8:02 Sascha Hauer
0 siblings, 0 replies; only message in thread
From: Sascha Hauer @ 2023-10-18 8:02 UTC (permalink / raw)
To: Barebox List; +Cc: Ahmad Fatoum
__LONG_MAX__ has eight hex digits on 32bit architectures, not nine.
Fixes: 1c4a409c9f ("test: self: add some test cases for test command")
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
test/self/test_command.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/self/test_command.c b/test/self/test_command.c
index 7a26f724f3..358855d0f6 100644
--- a/test/self/test_command.c
+++ b/test/self/test_command.c
@@ -7,7 +7,7 @@
BSELFTEST_GLOBALS();
-#if __LONG_MAX__ == 0x7ffffffff
+#if __LONG_MAX__ == 0x7fffffff
#define LONG_MIN_STR "-2147483648"
#define LONG_MIN_PLUS_1_STR "-2147483647"
#define LONG_MAX_STR "2147483647"
--
2.39.2
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-10-18 8:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-18 8:02 [PATCH] test: self: Fix testing test on 32bit architectures Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox