MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / fitsC

Function fitsC

third-party/lua-5.5.0/src/lcode.c:679–681  ·  view source on GitHub ↗

** Check whether 'i' can be stored in an 'sC' operand. Equivalent to ** (0 <= int2sC(i) && int2sC(i) <= MAXARG_C) but without risk of ** overflows in the hidden addition inside 'int2sC'. */

Source from the content-addressed store, hash-verified

677** overflows in the hidden addition inside 'int2sC'.
678*/
679static int fitsC (lua_Integer i) {
680 return (l_castS2U(i) + OFFSET_sC <= cast_uint(MAXARG_C));
681}
682
683
684/*

Callers 3

isSCintFunction · 0.70
isSCnumberFunction · 0.70
finishbinexpnegFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected