Minor tweak to previous change for the sake of consistency
gcc/ada/ * atree.h (Get_32_Bit_Field): Tidy up. (Get_32_Bit_Field_With_Default): Likewise.
This commit is contained in:
parent
ebffafe9cf
commit
1d214ea552
1 changed files with 2 additions and 4 deletions
|
@ -115,8 +115,7 @@ Get_8_Bit_Field (Node_Id N, Field_Offset Offset)
|
|||
INLINE unsigned int
|
||||
Get_32_Bit_Field (Node_Id N, Field_Offset Offset)
|
||||
{
|
||||
const Field_Offset L = 1;
|
||||
any_slot slot = *(Slots_Ptr + Node_Offsets_Ptr[N] + Offset / L);
|
||||
any_slot slot = *(Slots_Ptr + Node_Offsets_Ptr[N] + Offset);
|
||||
return slot;
|
||||
}
|
||||
|
||||
|
@ -124,8 +123,7 @@ INLINE unsigned int
|
|||
Get_32_Bit_Field_With_Default (Node_Id N, Field_Offset Offset,
|
||||
unsigned int Default_Value)
|
||||
{
|
||||
const Field_Offset L = 1;
|
||||
any_slot slot = *(Slots_Ptr + Node_Offsets_Ptr[N] + Offset / L);
|
||||
any_slot slot = *(Slots_Ptr + Node_Offsets_Ptr[N] + Offset);
|
||||
return slot == Empty ? Default_Value : slot;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue