From: Eric Botcazou Date: Mon, 10 May 2021 21:24:33 +0000 (+0200) Subject: Minor tweak to previous change for the sake of consistency X-Git-Tag: basepoints/gcc-13~7618 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d214ea552a4986a10819816610069041bde1821;p=thirdparty%2Fgcc.git 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. --- diff --git a/gcc/ada/atree.h b/gcc/ada/atree.h index 9b203f764161..e4750e13ab38 100644 --- a/gcc/ada/atree.h +++ b/gcc/ada/atree.h @@ -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; }