fix: use poratble c type
This commit is contained in:
parent
1743406317
commit
047b594d2f
@ -176,7 +176,7 @@ unsafe extern "C-unwind" fn break_line(state: *mut lua_State) -> i32 {
|
|||||||
lua_createtable(state, hyphenated.len() as i32, 0);
|
lua_createtable(state, hyphenated.len() as i32, 0);
|
||||||
for (idx, line) in hyphenated.iter().enumerate() {
|
for (idx, line) in hyphenated.iter().enumerate() {
|
||||||
lua_pushnumber(state, idx as f64 + 1f64);
|
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);
|
lua_settable(state, -3);
|
||||||
}
|
}
|
||||||
1
|
1
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user