lua-users home
lua-l archive

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


>If this is run from source it prints "hello", but if its run as precompiled
>chunk I get
>
>error: bad constant type (0) in `luac.out'

This is a bug in lundump.c.
Add 
   case LUA_TNIL: break;
to LoadConstants (and also in perhaps to DumpConstants in dump.c).
--lhf