| 468 | |
| 469 | |
| 470 | static void countint (lua_Integer key, Counters *ct) { |
| 471 | unsigned int k = arrayindex(key); |
| 472 | if (k != 0) { /* is 'key' an array index? */ |
| 473 | ct->nums[luaO_ceillog2(k)]++; /* count as such */ |
| 474 | ct->na++; |
| 475 | } |
| 476 | } |
| 477 | |
| 478 | |
| 479 | l_sinline int arraykeyisempty (const Table *t, unsigned key) { |
no test coverage detected