** Integers use userdata as keys to avoid collision with floats with same ** value; conversion to 'void*' used only for hashing, no "precision" ** problems */
| 350 | ** problems |
| 351 | */ |
| 352 | int luaK_intK(FuncState *fs, lua_Integer n) { |
| 353 | TValue k, o; |
| 354 | setpvalue(&k, lua_cast(void*, lua_cast(size_t, n))); |
| 355 | setivalue(&o, n); |
| 356 | return addk(fs, &k, &o); |
| 357 | } |
| 358 | |
| 359 | |
| 360 | static int luaK_numberK(FuncState *fs, lua_Number r) { |
no test coverage detected