[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ Bug ] Compiling as C++, lua_pcallk returns -1
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 20 Oct 2016 11:36:44 -0200
> As a side note, C++ finally made warnings about `char*` -> `const char*` an
> error in recent versions of C++ and also still has implicit `void*` casts
> to other pointer type banned, so there are a few places in the code where
> compiling as a (recent) version of C++ will trigger an outright error,
> which are:
>
> lobject.c, Line 255: char *pdot = strchr(s, '.');
> [...]
>
> lstrlib.c, Line 936: char *ppoint = memchr(buff, point, nb);
> [...]
This was already reported (followed by a long discussion :-); see [1]
and its thread. Thanks anyway.
[1] http://lua-users.org/lists/lua-l/2016-06/msg00374.html
-- Roberto