Skip to content

Commit 7cb1ebc

Browse files
authored
Fix compile warning in wasm_shared_memory.c (#1772)
1 parent 5737783 commit 7cb1ebc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/iwasm/common/wasm_shared_memory.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,8 @@ wasm_runtime_atomic_wait(WASMModuleInstanceCommon *module, void *address,
386386
os_mutex_lock(&wait_node->wait_lock);
387387

388388
os_cond_reltimedwait(&wait_node->wait_cond, &wait_node->wait_lock,
389-
timeout < 0 ? BHT_WAIT_FOREVER : timeout / 1000);
389+
timeout < 0 ? BHT_WAIT_FOREVER
390+
: (uint64)timeout / 1000);
390391

391392
os_mutex_unlock(&wait_node->wait_lock);
392393

0 commit comments

Comments
 (0)