diff options
author | Gael Guennebaud <g.gael@free.fr> | 2016-02-05 21:46:39 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2016-02-05 21:46:39 +0100 |
commit | 5b2d287878d4f049c1ba6c55c1fcaac1129d6df0 (patch) | |
tree | 658e36843c96218621d3b83c12ba61df16da47ed /test/dynalloc.cpp | |
parent | e8e1d504d6cbeb47c33169a36c052aa21bea32ee (diff) |
bug #779: allow non aligned buffers for buffers smaller than the requested alignment.
Diffstat (limited to 'test/dynalloc.cpp')
-rw-r--r-- | test/dynalloc.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/dynalloc.cpp b/test/dynalloc.cpp index 6f22e1ab4..5f587007c 100644 --- a/test/dynalloc.cpp +++ b/test/dynalloc.cpp @@ -31,7 +31,7 @@ void check_handmade_aligned_malloc() void check_aligned_malloc() { - for(int i = 1; i < 1000; i++) + for(int i = ALIGNMENT; i < 1000; i++) { char *p = (char*)internal::aligned_malloc(i); VERIFY(size_t(p)%ALIGNMENT==0); @@ -43,7 +43,7 @@ void check_aligned_malloc() void check_aligned_new() { - for(int i = 1; i < 1000; i++) + for(int i = ALIGNMENT; i < 1000; i++) { float *p = internal::aligned_new<float>(i); VERIFY(size_t(p)%ALIGNMENT==0); @@ -55,7 +55,7 @@ void check_aligned_new() void check_aligned_stack_alloc() { - for(int i = 1; i < 400; i++) + for(int i = ALIGNMENT; i < 400; i++) { ei_declare_aligned_stack_constructed_variable(float,p,i,0); VERIFY(size_t(p)%ALIGNMENT==0); |