Re: Bytecode converter
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Bytecode converter
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: 2007年10月26日 16:25:03 -0200
> Just out of curiosity, how complex would it be to write a converter from
> compiled bytecode where LUA_NUMBER is double to compiled bytecode where
> LUA_NUMBER is int?
Pretty easy really. Or you can just adapt lundump.c to read doubles and
convert to ints. (You'll have to rewrite the header test to skip a few
bytes.)