Commit 066d949
committed
Fix an assertion failure
`Id::operator-=(a,b)` throws when a == b, because you're not supposed to
make an invalid Id from a valid Id. So instead we use `uint64_t` to
represent the page offsets, because those are not necesarily valid Ids.
This assertion triggered when I tried to add units to the Haskell
indexer, I'm not sure why it hasn't triggered before.1 parent 8080606 commit 066d949
1 file changed
Lines changed: 13 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
362 | | - | |
363 | | - | |
| 362 | + | |
| 363 | + | |
364 | 364 | | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
371 | 376 | | |
372 | 377 | | |
373 | 378 | | |
| |||
0 commit comments