[PATCH] test: self: Fix testing test on 32bit architectures
Sascha Hauer
s.hauer at pengutronix.de
Wed Oct 18 01:02:10 PDT 2023
__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 at 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
More information about the barebox
mailing list