mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2024-08-17 02:41:43 +02:00
Fix qmckl_memory test
This commit is contained in:
parent
f1f83d1582
commit
062e06693a
@ -173,7 +173,7 @@ void* qmckl_malloc(qmckl_context context, const qmckl_memory_info_struct info) {
|
|||||||
qmckl_context context = qmckl_context_create();
|
qmckl_context context = qmckl_context_create();
|
||||||
|
|
||||||
qmckl_memory_info_struct info = qmckl_memory_info_struct_zero;
|
qmckl_memory_info_struct info = qmckl_memory_info_struct_zero;
|
||||||
info.size = (size_t) 3;
|
info.size = (size_t) 3*sizeof(int);
|
||||||
|
|
||||||
/* Allocate an array of ints */
|
/* Allocate an array of ints */
|
||||||
int *a = (int*) qmckl_malloc(context, info);
|
int *a = (int*) qmckl_malloc(context, info);
|
||||||
|
Loading…
Reference in New Issue
Block a user