dcArgInt(dcCallVM, args->data[arg_idx++].of.i32);
break;
- default: assert(("bad dynamic call type", 0));
+ default: assert("bad dynamic call type" && 0);
}
}
#ifdef USE_DYNCALL
wasm_runtime.wasm_func_from_idx = wasm_func_from_idx;
#endif
-
+
wasm_runtime.argc = argc;
wasm_runtime.argv = argv;
debug->listen_socket_fd = 0;
debug->client_fd = 0;
- if (pipe(debug->state_change_pipes) != 0) {
+ int *pipes = (int *)debug->state_change_pipes;
+ if (pipe(pipes) != 0) {
printf("[ERROR] Failed to create thread notification pipes.\n");
}
}
else return __ovm_ceil(f);
}
-static inline double __ovm_copysign(a, b) double a, b; {
+static inline double __ovm_copysign(double a, double b) {
if ((a > 0 && b > 0) || (a < 0 && b < 0)) return a;
return -a;
}