Commit ee4301e
Simplify kh_grow_to_fit table size check
For some reason, early versions of clang incorrectly optimised a
check to ensure that the number of buckets in a resized hash table
will still fit in a khint_t, with the result that most of the
function was replaced by "return -2". Fix by putting the limit
value in a separate variable, so the comparison part no longer
needs to do any type conversion.1 parent afbd7f7 commit ee4301e
2 files changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
| 314 | + | |
314 | 315 | | |
315 | 316 | | |
316 | 317 | | |
| |||
321 | 322 | | |
322 | 323 | | |
323 | 324 | | |
324 | | - | |
| 325 | + | |
325 | 326 | | |
326 | 327 | | |
327 | 328 | | |
| |||
0 commit comments