[PATCH] test: self: Fix testing test on 32bit architectures

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



__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@xxxxxxxxxxxxxx>
---
 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





[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux