MCPcopy Create free account
hub / github.com/PlutoLang/Pluto / checkrange

Function checkrange

src/ltable.cpp:310–312  ·  view source on GitHub ↗

** Return the index 'k' (converted to an unsigned) if it is inside ** the range [1, limit]. */

Source from the content-addressed store, hash-verified

308** the range [1, limit].
309*/
310static unsigned checkrange (lua_Integer k, unsigned limit) {
311 return (l_castS2U(k) - 1u < limit) ? cast_uint(k) : 0;
312}
313
314
315/*

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected