** hash for lua_Numbers */
| 9322 | ** hash for lua_Numbers |
| 9323 | */ |
| 9324 | static Node *hashnum (const Table *t, lua_Number n) { |
| 9325 | unsigned int a[numints]; |
| 9326 | int i; |
| 9327 | if (luai_numeq(n, 0)) /* avoid problems with -0 */ |
| 9328 | return gnode(t, 0); |
| 9329 | memcpy(a, &n, sizeof(a)); |
| 9330 | for (i = 1; i < numints; i++) a[0] += a[i]; |
| 9331 | return hashmod(t, a[0]); |
| 9332 | } |
| 9333 | |
| 9334 | |
| 9335 |
no outgoing calls
no test coverage detected