+2
-2
lines changedFilter options
+2
-2
lines changed Original file line number Diff line number Diff line change
@@ -231,7 +231,7 @@ static int nlua_str_utf_start(lua_State *const lstate) FUNC_ATTR_NONNULL_ALL
231
231
if (offset < 0 || offset > (intptr_t)s1_len) {
232
232
return luaL_error(lstate, "index out of range");
233
233
}
234
-
int tail_offset = mb_head_off((char_u *)s1, (char_u *)s1 + (char_u)offset - 1);
234
+
int tail_offset = mb_head_off((char_u *)s1, (char_u *)s1 + offset - 1);
235
235
lua_pushinteger(lstate, tail_offset);
236
236
return 1;
237
237
}
@@ -251,7 +251,7 @@ static int nlua_str_utf_end(lua_State *const lstate) FUNC_ATTR_NONNULL_ALL
251
251
if (offset < 0 || offset > (intptr_t)s1_len) {
252
252
return luaL_error(lstate, "index out of range");
253
253
}
254
-
int tail_offset = mb_tail_off((char_u *)s1, (char_u *)s1 + (char_u)offset - 1);
254
+
int tail_offset = mb_tail_off((char_u *)s1, (char_u *)s1 + offset - 1);
255
255
lua_pushinteger(lstate, tail_offset);
256
256
return 1;
257
257
}
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4