Skip to content

Commit e7464a8

Browse files
authored
Fix type mismatch in ecs_lookup_symbol on ARM/Android platforms (#286)
1 parent 237bd17 commit e7464a8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

flecs_ecs/src/addons/module/world.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ impl World {
3939
let symbol_name = core::any::type_name::<T>();
4040
let symbol = compact_str::format_compact!("{}\0", symbol_name);
4141
let m =
42-
unsafe { sys::ecs_lookup_symbol(raw_world, symbol.as_ptr() as *const i8, true, false) };
42+
unsafe { sys::ecs_lookup_symbol(raw_world, symbol.as_ptr() as *const _, true, false) };
4343
let module = if T::is_registered_with_world(self) && m != 0 {
4444
self.component::<T>().entity
4545
} else {

0 commit comments

Comments
 (0)