Explorar el Código

fixed typecast error when compiling in C++ (#179)

Renji Panicker hace 5 años
padre
commit
76eea80046
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      core/iwasm/include/lib_export.h

+ 2 - 2
core/iwasm/include/lib_export.h

@@ -15,8 +15,8 @@ typedef struct NativeSymbol {
     void *func_ptr;
     void *func_ptr;
 } NativeSymbol;
 } NativeSymbol;
 
 
-#define EXPORT_WASM_API(symbol)  {#symbol, symbol}
-#define EXPORT_WASM_API2(symbol) {#symbol, symbol##_wrapper}
+#define EXPORT_WASM_API(symbol)  {#symbol, (void*)symbol}
+#define EXPORT_WASM_API2(symbol) {#symbol, (void*)symbol##_wrapper}
 
 
 /**
 /**
  * Get the exported APIs of base lib
  * Get the exported APIs of base lib