Explorar o código

fix enum index on dynamic

Nicolas Cannasse %!s(int64=8) %!d(string=hai) anos
pai
achega
ae1cef05a5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/hlc.h

+ 1 - 1
src/hlc.h

@@ -75,6 +75,6 @@ extern void *hlc_get_wrapper(hl_type *t);
 extern void hl_entry_point();
 
 #define HL__ENUM_CONSTRUCT__	hl_type *t; int index;
-#define HL__ENUM_INDEX__(v)		(v)->index
+#define HL__ENUM_INDEX__(v)		((venum*)(v))->index
 
 #endif