| 216 | |
| 217 | |
| 218 | static int countint (const TValue *key, int *nums) { |
| 219 | int k = arrayindex(key); |
| 220 | if (0 < k && k <= MAXASIZE) { /* is `key' an appropriate array index? */ |
| 221 | nums[luaO_ceillog2(k)]++; /* count as such */ |
| 222 | return 1; |
| 223 | } |
| 224 | else |
| 225 | return 0; |
| 226 | } |
| 227 | |
| 228 | |
| 229 | static int numusearray (const Table *t, int *nums) { |
no test coverage detected