diff options
Diffstat (limited to '3rdparty/genie/src/host/string_endswith.c')
-rw-r--r-- | 3rdparty/genie/src/host/string_endswith.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/3rdparty/genie/src/host/string_endswith.c b/3rdparty/genie/src/host/string_endswith.c index f80cfc12bb0..8e3cd8970eb 100644 --- a/3rdparty/genie/src/host/string_endswith.c +++ b/3rdparty/genie/src/host/string_endswith.c @@ -15,9 +15,9 @@ int string_endswith(lua_State* L) if (haystack && needle) { - int hlen = strlen(haystack); - int nlen = strlen(needle); - if (hlen >= nlen) + int hlen = (int)strlen(haystack); + int nlen = (int)strlen(needle); + if (hlen >= nlen) { lua_pushboolean(L, strcmp(haystack + hlen - nlen, needle) == 0); return 1; |