Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Avoid sign-compare compiler warning in util/asmap
This reverts commit eac6a30 ("refactor: Rework asmap Interpret to avoid ptrdiff_t"), because it is UB to form a past-the-end iterator, even if it is never dereferenced. Then fix the compiler warning in a different way: Instead of comparing an uint32_t against a signed ptrdiff_t, just promote both to a type that can represent both types. Even though in this case the ptrdiff_t should never hold a negative value, the overhead from promotion should be negligible.
- Loading branch information