MCPcopy Create free account
hub / github.com/BigPig0/RelayLive / luaK_intK

Function luaK_intK

ThirdParty/lua/lua/lcode.c:351–356  ·  view source on GitHub ↗

** Integers use userdata as keys to avoid collision with floats with same ** value; conversion to 'void*' used only for hashing, no "precision" ** problems */

Source from the content-addressed store, hash-verified

349** problems
350*/
351int 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
359static int luaK_numberK (FuncState *fs, lua_Number r) {

Callers 3

fornumFunction · 0.85
discharge2regFunction · 0.85
luaK_exp2RKFunction · 0.85

Calls 1

addkFunction · 0.85

Tested by

no test coverage detected