mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Lua - use lua_isnumber function
This commit is contained in:
parent
889e685389
commit
6bbfb62293
1 changed files with 1 additions and 1 deletions
|
|
@ -305,7 +305,7 @@ begin
|
|||
Result:= 1;
|
||||
Search:= lua_tostring(L, 1);
|
||||
Source:= lua_tostring(L, 2);
|
||||
if lua_isinteger(L, 3) then begin
|
||||
if lua_isnumber(L, 3) then begin
|
||||
Offset:= lua_tointeger(L, 3)
|
||||
end;
|
||||
lua_pushinteger(L, UTF8Pos(Search, Source, Offset));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue