Implement wasm_runtime_init_thread_env for Windows platform (#683)
Implement wasm_runtime_init_thread_env() for Windows platform by calling os_thread_env_init(): if current thread is created by developer himself but not runtime, developer should call wasm_runtime_init_thread_env() to init the thread environment before calling wasm function, and call wasm_runtime_destroy_thread_env() before thread exits. And clear compile warnings for Windows platform, fix compile error for AliOS-Things platform Signed-off-by: Wenyong Huang <wenyong.huang@intel.com>
This commit is contained in:
@ -66,7 +66,7 @@ read_leb(const uint8 *buf, const uint8 *buf_end,
|
||||
}
|
||||
if (sign && (shift < maxbits) && (byte & 0x40)) {
|
||||
/* Sign extend */
|
||||
result |= (uint64)(- (((uint64)1) << shift));
|
||||
result |= (~((uint64)0)) << shift;
|
||||
}
|
||||
*p_result = result;
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user