From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH] test: self: Fix testing test on 32bit architectures
Date: Wed, 18 Oct 2023 10:02:10 +0200 [thread overview]
Message-ID: <20231018080210.290456-1-s.hauer@pengutronix.de> (raw)
__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
reply other threads:[~2023-10-18 8:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231018080210.290456-1-s.hauer@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox