diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/include/test_memory_chunk.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/include/test_memory_chunk.cpp b/tests/include/test_memory_chunk.cpp index 3724ecd..14e339b 100755 --- a/tests/include/test_memory_chunk.cpp +++ b/tests/include/test_memory_chunk.cpp @@ -11,14 +11,14 @@ int main(int argc, char * argv[]){ int * p = (int *)chunk->begin(); assert(chunk->size() == sizeof(int)); printf("%d\n", *p); - printf("%d\n", chunk->capacity()); + printf("%ld\n", chunk->capacity()); p = & i; chunk->set_chunk(p, sizeof(int), NULL); short t = 5; chunk->set_content(sizeof(int), &t, sizeof(short)); assert( sizeof(int) + sizeof(short) == chunk->size()); - printf("%d\n", chunk->capacity()); + printf("%ld\n", chunk->capacity()); p = (int *)chunk->begin(); short * p2 =(short *)(((char *) (chunk->begin())) + sizeof(int)); @@ -27,7 +27,7 @@ int main(int argc, char * argv[]){ chunk->set_content(sizeof(int) + sizeof(short), &t, sizeof(short)); assert( sizeof(int) + (sizeof(short) << 1) == chunk->size()); - printf("%d\n", chunk->capacity()); + printf("%ld\n", chunk->capacity()); p = (int *)chunk->begin(); p2 =(short *)(((char *) (chunk->begin())) + sizeof(int)); printf("%d\t%d\t%d\n", *p, *p2, *(p2 + 1)); |