In the 5.3.3 release, lua/lstrlib.cc:936:char *ppoint = memchr(buff, point, nb);is not valid c++ code. This should be fixed with a c-style cast:@@ -935,3 +935,3 @@ static void checkdp (char *buff, int nb) {char point = lua_getlocaledecpoint(); /* try locale point */- char *ppoint = memchr(buff, point, nb);+ char *ppoint = (char *)(memchr(buff, point, nb));if (ppoint) *ppoint = '.'; /* change it to a dot */-- Irfan
There is a similar issue in lobject.c with respect to lua-as-C++.
diff --git a/lua-5.3.3/src/lobject.c b/lua-5.3.3/src/lobject.c