mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2024-12-22 20:36:01 +01: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_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 */
|
||||
int *a = (int*) qmckl_malloc(context, info);
|
||||
|
Loading…
Reference in New Issue
Block a user