From 9dbea8448cf1a34a594eb53b890fe6a50c33dbfd Mon Sep 17 00:00:00 2001 From: Xiretza Date: Sun, 6 Dec 2020 16:48:03 +0100 Subject: [PATCH] Revert "2020 day2/vhdl: workaround ghdl#1529" This reverts commit 2f1277c4b11de75e39bec5f83d0ec6446a1d07f2. --- 2020/day2/vhdl/parser.vhd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2020/day2/vhdl/parser.vhd b/2020/day2/vhdl/parser.vhd index 4515735..36392f9 100644 --- a/2020/day2/vhdl/parser.vhd +++ b/2020/day2/vhdl/parser.vhd @@ -30,7 +30,7 @@ architecture behaviour of parser is function char_to_digit(input : in character) return digit is begin - if not (input < '0') and input <= '9' then + if input >= '0' and input <= '9' then return character'pos(input) - character'pos('0'); else return 0;