| 409 | |
| 410 | |
| 411 | static int countint (lua_Integer key, unsigned int *nums) { |
| 412 | unsigned int k = arrayindex(key); |
| 413 | if (k != 0) { /* is 'key' an appropriate array index? */ |
| 414 | nums[luaO_ceillog2(k)]++; /* count as such */ |
| 415 | return 1; |
| 416 | } |
| 417 | else |
| 418 | return 0; |
| 419 | } |
| 420 | |
| 421 | |
| 422 | /* |
no test coverage detected