From 062e06693a58d4858a0838f1e0a931ae61fd82b3 Mon Sep 17 00:00:00 2001 From: q-posev Date: Mon, 11 Jul 2022 09:46:13 +0200 Subject: [PATCH] Fix qmckl_memory test --- org/qmckl_memory.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org/qmckl_memory.org b/org/qmckl_memory.org index acf2433..fc64322 100644 --- a/org/qmckl_memory.org +++ b/org/qmckl_memory.org @@ -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);