Cast of signed types to u64 breaks comparison.
Also remove double () around operands.
Details
Details
- Reviewers
cryptoad hctim - Commits
- rG8e30b55c82cc: [scudo] Fix CHECK implementation
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Right, that makes sense, thank you Vitaly!
FWIW, this was originally taken from CHECK_IMPL in sanitizer_common that seems to display the same behavior: https://github.com/llvm/llvm-project/blob/main/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h#L289