diff --git a/ecsact/wasm/detail/wasm_ecsact_system_execution.cc b/ecsact/wasm/detail/wasm_ecsact_system_execution.cc index 4c86a9b..b54d88d 100644 --- a/ecsact/wasm/detail/wasm_ecsact_system_execution.cc +++ b/ecsact/wasm/detail/wasm_ecsact_system_execution.cc @@ -181,17 +181,17 @@ wasm_trap_t* wasm_ecsact_system_execution_context_generate( auto memory = get_execution_context_memory(args->data[0]); auto components_count = args->data[1].of.i32; - std::vector component_datas; - component_datas.resize(components_count); + std::vector component_data_list; + component_data_list.resize(components_count); // each i32 element represents a pointer in WASM memory - auto component_datas_wasm = + auto component_data_list_wasm = static_cast(get_void_ptr(args->data[3], memory)); for(int i = 0; components_count > i; ++i) { - component_datas[i] = get_const_void_ptr( + component_data_list[i] = get_const_void_ptr( wasm_val_t{ .kind = WASM_I32, - .of{.i32 = component_datas_wasm[i]}, + .of{.i32 = component_data_list_wasm[i]}, }, memory ); @@ -201,7 +201,7 @@ wasm_trap_t* wasm_ecsact_system_execution_context_generate( ctx, components_count, static_cast(get_void_ptr(args->data[2], memory)), - component_datas.data() + component_data_list.data() ); return nullptr; } diff --git a/test/wasi_test.cc b/test/wasi_test.cc index 3025ae8..5882054 100644 --- a/test/wasi_test.cc +++ b/test/wasi_test.cc @@ -138,7 +138,7 @@ int main(int argc, char* argv[]) { ecsact::core::registry test_registry("Test Registry"); auto test_entity = test_registry.create_entity(); - test_registry.add_component(test_entity, wasi_test::DummyCompnent{}); + test_registry.add_component(test_entity, wasi_test::DummyComponent{}); ecsactsi_wasm_set_trap_handler(&trap_handler); load_test_virtual_files(); diff --git a/test/wasi_test.ecsact b/test/wasi_test.ecsact index e4a1e89..83e25db 100644 --- a/test/wasi_test.ecsact +++ b/test/wasi_test.ecsact @@ -1,9 +1,9 @@ main package wasi_test; -component DummyCompnent { +component DummyComponent { i32 n; } system WasiTestSystem { - readwrite DummyCompnent; + readwrite DummyComponent; } diff --git a/test/wasi_test_read_file.cc b/test/wasi_test_read_file.cc index d498954..10110b1 100644 --- a/test/wasi_test_read_file.cc +++ b/test/wasi_test_read_file.cc @@ -9,7 +9,7 @@ #include static const auto example_text = []() -> std::string { - std::cout << "Initialzing static string\n"; + std::cout << "Initializing static string\n"; auto content = std::string{}; auto f = std::fopen("example.txt", "rb");