diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2010-06-15 11:40:38 +0200 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2010-06-15 11:36:14 -0700 |
commit | 42150430ce7cbcee73173c7b8302c24f2efbae76 (patch) | |
tree | b4c848df7facd0b3ffd1d42ae51150e1c619e807 /testsuite | |
parent | 03a7d6c290eff523cf83375cbbd3ac374b857c4c (diff) |
tests: Fix compilation of the ABI test on 64 bit architectures
Casting a pointer to a plain int will cause a compiler error, use long instead.
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/abi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testsuite/abi.c b/testsuite/abi.c index f03a7b3..553c8fa 100644 --- a/testsuite/abi.c +++ b/testsuite/abi.c @@ -10,11 +10,11 @@ int main (int argc, char *argv[]) { - int offset; + long offset; int expected_offset; int error = 0; - offset = ((int) ((unsigned char *) &((OrcProgram*) 0)->code_exec)); + offset = ((long) ((unsigned char *) &((OrcProgram*) 0)->code_exec)); if (sizeof(void *) == 4) { expected_offset = 8360; @@ -23,7 +23,7 @@ int main (int argc, char *argv[]) } if (offset != expected_offset) { - printf("ABI bug: OrcProgram->code_exec should be at offset %d instead of %d\n", + printf("ABI bug: OrcProgram->code_exec should be at offset %ld instead of %d\n", offset, expected_offset); error = 1; } |