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