From 11c88d22304468ebd406a41bb10f89e78187605b Mon Sep 17 00:00:00 2001 From: David Schleef Date: Tue, 19 Feb 2013 17:04:21 -0800 Subject: [PATCH] test: Use the aligned pointer, not something else --- orc-test/orcarray.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/orc-test/orcarray.c b/orc-test/orcarray.c index 992e888..c5ca362 100644 --- a/orc-test/orcarray.c +++ b/orc-test/orcarray.c @@ -80,8 +80,7 @@ orc_array_new (int n, int m, int element_size, int misalignment, if (alignment == 0) alignment = element_size; offset = (alignment * misalignment) & (ALIGNMENT - 1); - ar->data = ORC_PTR_OFFSET (ar->alloc_data, - ar->stride * EXTEND_ROWS + offset); + ar->data = ORC_PTR_OFFSET (data, ar->stride * EXTEND_ROWS + offset); return ar; } -- 2.7.4