Skip to content

Commit 350af77

Browse files
Collective fix: fix some typos (#4337)
1 parent 97e9502 commit 350af77

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ WebAssembly Micro Runtime (WAMR) is a lightweight standalone WebAssembly (Wasm)
2121

2222
### Key features
2323
- Full compliant to the W3C Wasm MVP
24-
- Small runtime binary size (core vmlib on cortex-m4f with tail-call/bulk memroy/shared memroy support, text size from bloaty)
24+
- Small runtime binary size (core vmlib on cortex-m4f with tail-call/bulk memory/shared memory support, text size from bloaty)
2525
* ~58.9K for fast interpreter
2626
* ~56.3K for classic interpreter
2727
* ~29.4K for aot runtime

doc/ref_types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ WebAssembly [reference-types](https://github.com/WebAssembly/reference-types) pr
44

55
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.
66

7-
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`.
7+
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`.
88

99
Please ref to the [sample](../samples/ref-types) for more details.

language-bindings/python/src/wamr/wasmcapi/ffi.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,12 @@ def wasm_vec_to_list(vec):
112112
wasm_frame_vec_t,
113113
wasm_extern_vec_t,
114114
]
115-
known_vec_pointer_type = [POINTER(type) for type in known_vec_type]
115+
known_vec_pointer_type = [POINTER(vec_type) for vec_type in known_vec_type]
116116

117-
if any([isinstance(vec, type) for type in known_vec_pointer_type]):
117+
if any([isinstance(vec, pointer_type) for pointer_type in known_vec_pointer_type]):
118118
vec = dereference(vec)
119119
return [vec.data[i] for i in range(vec.num_elems)]
120-
elif any([isinstance(vec, type) for type in known_vec_type]):
120+
elif any([isinstance(vec, vec_type) for vec_type in known_vec_type]):
121121
return [vec.data[i] for i in range(vec.num_elems)]
122122
else:
123123
raise RuntimeError("not a known vector type")
@@ -405,7 +405,7 @@ def __compare_wasm_val_t(self, other):
405405
elif WASM_F32 == self.kind:
406406
return self.of.f32 == other.of.f32
407407
elif WASM_F64 == self.kind:
408-
return self.of.f64 == other.of.f63
408+
return self.of.f64 == other.of.f64
409409
elif WASM_EXTERNREF == self.kind:
410410
raise RuntimeError("FIXME")
411411
else:

samples/socket-api/sample_test_run.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ def main():
121121
print("\n================================")
122122
print("Test address resolving")
123123
cmd = "./iwasm --allow-resolve=*.com addr_resolve.wasm github.com"
124-
cmd = "./multicast_server FF02:113D:6FDD:2C17:A643:FFE2:1BD1:3CD2"
125124
run_cmd(cmd, args.working_directory)
126125

127126
# wait for a second

0 commit comments

Comments
 (0)