| 400 | |
| 401 | |
| 402 | static int countint (lua_Integer key, unsigned int *nums) { |
| 403 | unsigned int k = arrayindex(key); |
| 404 | if (k != 0) { /* is 'key' an appropriate array index? */ |
| 405 | nums[luaO_ceillog2(k)]++; /* count as such */ |
| 406 | return 1; |
| 407 | } |
| 408 | else |
| 409 | return 0; |
| 410 | } |
| 411 | |
| 412 | |
| 413 | /* |
no test coverage detected