summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-09-09 23:23:44 +0200
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-09-10 00:54:47 +0200
commit8f98b88b4594be82dd0e18449d7254026a669dcf (patch)
treeca4c06abb2d6f2bffa8f915c8d7617f96d45b18f
parent16517102991cab96722a90859ec9be50852747a1 (diff)
downloadsparse-8f98b88b4594be82dd0e18449d7254026a669dcf.tar.gz
test: use integers of different sizes, even on 32-bit
The test optim/cse-size fials on 32-bit because it needs two integers of different size but uses int & long. These two types have indeed different sizes on 64-bit (LP64) but not on 32-bit (ILP32). Fix this by using short & int. Reported-by: Ramsay Jones <ramsay@ramsayjones.plus.com> Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
-rw-r--r--validation/optim/cse-size.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/validation/optim/cse-size.c b/validation/optim/cse-size.c
index e98c3cde..5b31420c 100644
--- a/validation/optim/cse-size.c
+++ b/validation/optim/cse-size.c
@@ -1,7 +1,7 @@
static void foo(void)
{
- unsigned p = 0;
- long x;
+ unsigned short p = 0;
+ int x;
for (;;)
if (p)