lua-users home
lua-l archive

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



On Thu, May 21, 2020 at 3:42 AM Massimo Sala <massimo.sala.71@gmail.com> wrote:
Pls replace this

if (ret != 0 && ptr == MEMERRMSG)
    ret = LUA_ERRMEM;


With

if (ret != 0 && strcmp(ptr, MEMERRMSG) == 0)
    ret = LUA_ERRMEM;



Are you aware of a linker that doesn't unify string literals?

/s/ Adam