From 35c75c3aa52fc3a2b9345a13d58234935fc4fa79 Mon Sep 17 00:00:00 2001 From: Xiretza Date: Wed, 2 Dec 2020 21:18:50 +0100 Subject: [PATCH] 2020 day2/vhdl: workaround ghdl#1529 https://github.com/ghdl/ghdl/pull/1529 --- 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 36392f9..4515735 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 input >= '0' and input <= '9' then + if not (input < '0') and input <= '9' then return character'pos(input) - character'pos('0'); else return 0;