** Add an integer to list of constants and return its index. ** Integers use userdata as keys to avoid collision with floats with ** same value; conversion to 'void*' is used only for hashing, so there ** are no "precision" problems. */
| 590 | ** are no "precision" problems. |
| 591 | */ |
| 592 | static int luaK_intK (FuncState *fs, lua_Integer n) { |
| 593 | TValue k, o; |
| 594 | setpvalue(&k, cast_voidp(cast_sizet(n))); |
| 595 | setivalue(&o, n); |
| 596 | return addk(fs, &k, &o); |
| 597 | } |
| 598 | |
| 599 | /* |
| 600 | ** Add a float to list of constants and return its index. |
no test coverage detected