浏览代码

fix enum index on dynamic

Nicolas Cannasse 8 年之前
父节点
当前提交
ae1cef05a5
共有 1 个文件被更改,包括 1 次插入1 次删除
  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