lua-users home
lua-l archive

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

Hello lua,

      I saw in ltable.c line 121, (in function arrayindex) . It uses
      lua_number2int to convet "nvalue(key)" to a "int".
      In lapi.c , line 317. It uses the same way.

      But in lcode.c, line 230/231. It uses "cast_int(nvalue(idx))".
      I think using lua_number2int would be better, isn't it?

Best regards,