lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> 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 */

Thanks.

-- Roberto