lua-users home
lua-l archive

Re: [patch][c++] fix conversion from const char*

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


> 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. :-)
-- Roberto

AltStyle によって変換されたページ (->オリジナル) /