| 367 | |
| 368 | |
| 369 | static int countint (lua_Integer key, unsigned int *nums) { |
| 370 | unsigned int k = arrayindex(key); |
| 371 | if (k != 0) { /* is 'key' an appropriate array index? */ |
| 372 | nums[luaO_ceillog2(k)]++; /* count as such */ |
| 373 | return 1; |
| 374 | } |
| 375 | else |
| 376 | return 0; |
| 377 | } |
| 378 | |
| 379 | |
| 380 | /* |
no test coverage detected