mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Lua - use lua_isnumber function
(cherry picked from commit 6bbfb62293)
This commit is contained in:
parent
b220a50e90
commit
aa8a3a3a14
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