From e14891990e0c37bade4aa7b1c75e3f1d58ef43e3 Mon Sep 17 00:00:00 2001 From: Robbert Gurdeep Singh Date: Thu, 14 Apr 2022 16:03:57 +0200 Subject: [PATCH] Add primitive type to struct when installing --- src/Primitives/primitives.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Primitives/primitives.cpp b/src/Primitives/primitives.cpp index 89e5423d..1949f90d 100644 --- a/src/Primitives/primitives.cpp +++ b/src/Primitives/primitives.cpp @@ -86,6 +86,7 @@ double sensor_emu = 0; if (prim_index < ALL_PRIMITIVES) { \ PrimitiveEntry *p = &primitives[prim_index++]; \ p->name = #prim_name; \ + p->t = prim_name##_type; \ p->f = &(prim_name); \ } else { \ FATAL("pim_index out of bounds"); \