[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [patch][c++] fix conversion from const char*
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 29 Jun 2016 10:42:48 -0300
> There is a similar issue in lobject.c with respect to lua-as-C++.
> - char *pdot = strchr(s, '.');
> + const char *pdot = strchr(s, '.');
Thanks. I had already fixed that (after I realized that I needed
gcc instead of clang to get the warnings I was asking for).
(Of course, WE DON'T NEED that 'const' in C, so people may argue that
we are being verbose, that we do not know C, etc. :-)