diff --git a/README.md b/README.md index 05368b929..39ce5fd03 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ WebAssembly Micro Runtime (WAMR) is a lightweight standalone WebAssembly (Wasm) ### Key features - Full compliant to the W3C Wasm MVP -- Small runtime binary size (core vmlib on cortex-m4f with tail-call/bulk memroy/shared memroy support, text size from bloaty) +- Small runtime binary size (core vmlib on cortex-m4f with tail-call/bulk memory/shared memory support, text size from bloaty) * ~58.9K for fast interpreter * ~56.3K for classic interpreter * ~29.4K for aot runtime diff --git a/doc/ref_types.md b/doc/ref_types.md index 7fefa999d..2cd300497 100644 --- a/doc/ref_types.md +++ b/doc/ref_types.md @@ -4,6 +4,6 @@ WebAssembly [reference-types](https://github.com/WebAssembly/reference-types) pr WAMR has implemented the reference-types proposal. WAMR allows a native method to pass a host object to a WASM application as an `externref` parameter or receives a host object from a WASM application as an `externref` result. Internally, WAMR won't try to parse or dereference `externref`. It is an opaque type. -The restriction of using `externref` in a native method is the host object has to be the value of a `unintptr_t` variable. In other words, it takes **8 bytes** on 64-bit machine and **4 bytes** on 32-bit machines. Please keep that in mind especially when calling `wasm_runtime_call_wasm`. +The restriction of using `externref` in a native method is the host object has to be the value of a `uintptr_t` variable. In other words, it takes **8 bytes** on 64-bit machine and **4 bytes** on 32-bit machines. Please keep that in mind especially when calling `wasm_runtime_call_wasm`. Please ref to the [sample](../samples/ref-types) for more details. diff --git a/language-bindings/python/src/wamr/wasmcapi/ffi.py b/language-bindings/python/src/wamr/wasmcapi/ffi.py index 82292335b..e8a084c14 100644 --- a/language-bindings/python/src/wamr/wasmcapi/ffi.py +++ b/language-bindings/python/src/wamr/wasmcapi/ffi.py @@ -112,12 +112,12 @@ def wasm_vec_to_list(vec): wasm_frame_vec_t, wasm_extern_vec_t, ] - known_vec_pointer_type = [POINTER(type) for type in known_vec_type] + known_vec_pointer_type = [POINTER(vec_type) for vec_type in known_vec_type] - if any([isinstance(vec, type) for type in known_vec_pointer_type]): + if any([isinstance(vec, pointer_type) for pointer_type in known_vec_pointer_type]): vec = dereference(vec) return [vec.data[i] for i in range(vec.num_elems)] - elif any([isinstance(vec, type) for type in known_vec_type]): + elif any([isinstance(vec, vec_type) for vec_type in known_vec_type]): return [vec.data[i] for i in range(vec.num_elems)] else: raise RuntimeError("not a known vector type") @@ -405,7 +405,7 @@ def __compare_wasm_val_t(self, other): elif WASM_F32 == self.kind: return self.of.f32 == other.of.f32 elif WASM_F64 == self.kind: - return self.of.f64 == other.of.f63 + return self.of.f64 == other.of.f64 elif WASM_EXTERNREF == self.kind: raise RuntimeError("FIXME") else: diff --git a/samples/socket-api/sample_test_run.py b/samples/socket-api/sample_test_run.py index ec0060281..6e9153b24 100755 --- a/samples/socket-api/sample_test_run.py +++ b/samples/socket-api/sample_test_run.py @@ -121,7 +121,6 @@ def main(): print("\n================================") print("Test address resolving") cmd = "./iwasm --allow-resolve=*.com addr_resolve.wasm github.com" - cmd = "./multicast_server FF02:113D:6FDD:2C17:A643:FFE2:1BD1:3CD2" run_cmd(cmd, args.working_directory) # wait for a second