diff options
author | Tristan Gingold <tgingold@free.fr> | 2021-03-28 09:49:27 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2021-03-28 09:49:27 +0200 |
commit | d696b12acb0d764f493f3757a4db8bb7f3593df1 (patch) | |
tree | 75f1cc180b1af37f1526f7c65e9dc73569a82b91 | |
parent | 61a1b78d739068a78b3dfad41789e669e1b6b271 (diff) | |
download | ghdl-d696b12acb0d764f493f3757a4db8bb7f3593df1.tar.gz ghdl-d696b12acb0d764f493f3757a4db8bb7f3593df1.tar.bz2 ghdl-d696b12acb0d764f493f3757a4db8bb7f3593df1.zip |
vhdl-parse_psl: minor reformating
-rw-r--r-- | src/vhdl/vhdl-parse_psl.adb | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/vhdl/vhdl-parse_psl.adb b/src/vhdl/vhdl-parse_psl.adb index b453423f4..d54924212 100644 --- a/src/vhdl/vhdl-parse_psl.adb +++ b/src/vhdl/vhdl-parse_psl.adb @@ -66,17 +66,16 @@ package body Vhdl.Parse_Psl is end if; end Parse_Number; - procedure Check_Positive_Count(N : Node) is - Low : Uns32; - High : Uns32; + procedure Check_Positive_Count (N : Node) + is + Low : constant Uns32 := Get_Value (Get_Low_Bound (N)); + High : constant Uns32 := Get_Value (Get_High_Bound (N)); begin - Low := Get_Value(Get_Low_Bound(N)); - High := Get_Value(Get_High_Bound(N)); - if Low >= High then - Error_Msg_Parse ( - "Low bound of range must be lower than High bound," & - " actual range is:" & - Uns32'Image(Low) & " to" & Uns32'Image(High)); + if Low > High then + Error_Msg_Parse + ("Low bound of range must be lower than High bound," & + " actual range is:" & + Uns32'Image (Low) & " to" & Uns32'Image (High)); end if; end Check_Positive_Count; |