From ed2b7e5ef1626c0d6318b6ea71897efbb4356277 Mon Sep 17 00:00:00 2001 From: Julian Sikorski Date: Sun, 29 Sep 2019 15:30:18 +0200 Subject: Synced with GENie upstream revision e78d6c1 (#5631) * Synced with GENie upstream revision e78d6c1 * Add Visual Studio 2019 support * Fix hardcoded -m64 * Switch appveyor to Visual Studio 2019 * Fix genie being built as 32-bit * MSVC build is known to be broken currently. Let it fail until all the known issues are fixed. * Update the packages before building * Build with 3 threads Appveyor VMs have only 2 cores and 8 GB RAM. * Enable caching of pacman cache --- 3rdparty/genie/src/host/string_endswith.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '3rdparty/genie/src/host/string_endswith.c') 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; -- cgit v1.2.3-70-g09d2