From 047b594d2f6e43530124e50258546d0f59a236bc Mon Sep 17 00:00:00 2001 From: Fey Naomi Schrewe Date: Sat, 12 Sep 2026 19:24:46 +0200 Subject: [PATCH] fix: use poratble c type --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 0b0beeb..0582c09 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -176,7 +176,7 @@ unsafe extern "C-unwind" fn break_line(state: *mut lua_State) -> i32 { lua_createtable(state, hyphenated.len() as i32, 0); for (idx, line) in hyphenated.iter().enumerate() { lua_pushnumber(state, idx as f64 + 1f64); - lua_pushlstring(state, line.as_ptr() as *const i8, line.len()); + lua_pushlstring(state, line.as_ptr() as *const std::ffi::c_char, line.len()); lua_settable(state, -3); } 1