** Return the index 'k' (converted to an unsigned) if it is inside ** the range [1, limit]. */
| 308 | ** the range [1, limit]. |
| 309 | */ |
| 310 | static unsigned checkrange (lua_Integer k, unsigned limit) { |
| 311 | return (l_castS2U(k) - 1u < limit) ? cast_uint(k) : 0; |
| 312 | } |
| 313 | |
| 314 | |
| 315 | /* |
nothing calls this directly
no outgoing calls
no test coverage detected