Skip to content

Commit

Permalink
Avoid casting to E::WordTy
Browse files Browse the repository at this point in the history
  • Loading branch information
rui314 committed May 1, 2022
1 parent 74ad5da commit 230976a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elf/dwarf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ read_debug_range(Context<E> &ctx, ObjectFile<E> &file, typename E::WordTy *range
u64 base = 0;

for (i64 i = 0; range[i] || range[i + 1]; i += 2) {
if (range[i] == (typename E::WordTy)-1) {
if (range[i] + 1 == 0) {
// base address selection entry
base = range[i + 1];
} else {
Expand Down

0 comments on commit 230976a

Please sign in to comment.