Commit f2fbeb6
Fix an assertion failure (#616)
Summary:
`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.
Pull Request resolved: #616
Reviewed By: jjuliamolin
Differential Revision: D89959600
Pulled By: kbojarczuk
fbshipit-source-id: 3c93733e92f64dda0ad17f5ef297dd92a9823bd91 parent 66ab5ee commit f2fbeb6
1 file changed
Lines changed: 11 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
442 | 442 | | |
443 | 443 | | |
444 | 444 | | |
445 | | - | |
446 | | - | |
| 445 | + | |
| 446 | + | |
447 | 447 | | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
454 | 457 | | |
455 | 458 | | |
456 | 459 | | |
| |||
0 commit comments