summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2014-06-27 11:33:16 +0200
committerEdward Hervey <bilboed@bilboed.com>2014-06-27 11:33:16 +0200
commit96b061787d54265ebd320c3bd6d788f8fc92d400 (patch)
tree7dae4f3114647cfd2a0ff35bbdb41ded8b58e5f6
parent5f4ebb54fe6f76fd463016ecc6104f14d30099a3 (diff)
orcarray: Use size_t for pointer arithmetics
Fixes these warnings on windows x86_64: orcarray.c:80:33: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] orcarray.c:80:22: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
-rw-r--r--orc-test/orcarray.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/orc-test/orcarray.c b/orc-test/orcarray.c
index 70283bf..01f3d58 100644
--- a/orc-test/orcarray.c
+++ b/orc-test/orcarray.c
@@ -77,7 +77,7 @@ orc_array_new (int n, int m, int element_size, int misalignment,
#else
data = malloc (ar->alloc_len + ALIGNMENT);
ar->alloc_data = data;
- ar->aligned_data = (void *)((((unsigned long)data) + (ALIGNMENT-1))&(~(ALIGNMENT-1)));
+ ar->aligned_data = (void *)((((size_t)data) + (ALIGNMENT-1))&(~(ALIGNMENT-1)));
#endif
#endif