diff options
author | David Schleef <ds@schleef.org> | 2013-02-19 17:04:21 -0800 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2013-02-19 17:04:21 -0800 |
commit | 11c88d22304468ebd406a41bb10f89e78187605b (patch) | |
tree | a8222a09dfaf3dab73cc2a0e3e322a57d70b8cec /orc-test | |
parent | 9664aabdf45fbe38e43c7041b234548a2c1bf0ff (diff) |
test: Use the aligned pointer, not something else
Diffstat (limited to 'orc-test')
-rw-r--r-- | orc-test/orcarray.c | 3 |
1 files changed, 1 insertions, 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; } |