Skip to content

Commit

Permalink
Remove unnecessary subexpression
Browse files Browse the repository at this point in the history
Ref. None
  • Loading branch information
treiher committed Apr 26, 2024
1 parent c5ce2af commit d8da4b2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rflx/templates/rflx_generic_types-generic_operations.adb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ is
and then LME_Size = (Natural (Off) + Value_Size + Byte'Size - 1) mod Byte'Size + 1)
is
begin
RME_Index := Index (Last - Long_Integer (Off) / Byte'Size);
RME_Index := Index (Last);
LME_Index := Index (Last - (Long_Integer (Off) + Long_Integer (Value_Size) - 1) / Byte'Size);
RME_Size := Byte'Size - Natural (Off);
LME_Size := (Natural (Off) + Value_Size + Byte'Size - 1) mod Byte'Size + 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ is
and then LME_Size = (Natural (Off) + Value_Size + Byte'Size - 1) mod Byte'Size + 1)
is
begin
RME_Index := Index (Last - Long_Integer (Off) / Byte'Size);
RME_Index := Index (Last);
LME_Index := Index (Last - (Long_Integer (Off) + Long_Integer (Value_Size) - 1) / Byte'Size);
RME_Size := Byte'Size - Natural (Off);
LME_Size := (Natural (Off) + Value_Size + Byte'Size - 1) mod Byte'Size + 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ is
and then LME_Size = (Natural (Off) + Value_Size + Byte'Size - 1) mod Byte'Size + 1)
is
begin
RME_Index := Index (Last - Long_Integer (Off) / Byte'Size);
RME_Index := Index (Last);
LME_Index := Index (Last - (Long_Integer (Off) + Long_Integer (Value_Size) - 1) / Byte'Size);
RME_Size := Byte'Size - Natural (Off);
LME_Size := (Natural (Off) + Value_Size + Byte'Size - 1) mod Byte'Size + 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ is
and then LME_Size = (Natural (Off) + Value_Size + Byte'Size - 1) mod Byte'Size + 1)
is
begin
RME_Index := Index (Last - Long_Integer (Off) / Byte'Size);
RME_Index := Index (Last);
LME_Index := Index (Last - (Long_Integer (Off) + Long_Integer (Value_Size) - 1) / Byte'Size);
RME_Size := Byte'Size - Natural (Off);
LME_Size := (Natural (Off) + Value_Size + Byte'Size - 1) mod Byte'Size + 1;
Expand Down

0 comments on commit d8da4b2

Please sign in to comment.