Skip to content

Commit

Permalink
Scale primitive type array index down
Browse files Browse the repository at this point in the history
  • Loading branch information
ptomin committed Dec 7, 2023
1 parent 5fb8e03 commit add9f3a
Show file tree
Hide file tree
Showing 35 changed files with 219 additions and 218 deletions.
1 change: 1 addition & 0 deletions src/Decompiler/Typing/ComplexExpressionBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ public Expression VisitPrimitive(PrimitiveType pt)
}
else
{
index = ScaleDownIndex(index, pt.Size);
return CreateArrayAccess(pt, enclosingPtr, offset / pt.Size, index);
}
}
Expand Down
4 changes: 2 additions & 2 deletions subjects/Elf/ARM/angr-685/RTOSDemo.reko/RTOSDemo.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion subjects/Elf/ARM/angr-685/RTOSDemo.reko/RTOSDemo_text.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions subjects/Elf/AVR32/ls.reko/ls.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions subjects/Elf/AVR32/ls.reko/ls_seg00001000_0000.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions subjects/Elf/Msp430/a.reko/a.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion subjects/Elf/Msp430/a.reko/a_text.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions subjects/Elf/nanoMips/ping/ping.reko/ping.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit add9f3a

Please sign in to comment.