Skip to content

Commit 26aa27d

Browse files
committed
Working around compilation error with NVC.
1 parent f3078cc commit 26aa27d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

vunit/vhdl/data_types/test/tb_codec.vhd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,14 @@ begin
4040
function "=" (
4141
constant l, r : ieee.numeric_bit.unsigned)
4242
return boolean is
43+
variable result : boolean;
4344
begin
4445
if l'length = 0 and r'length = 0 then
4546
return true;
4647
end if;
4748

48-
return ieee.numeric_bit."="(l, r);
49+
result := ieee.numeric_bit."="(l, r);
50+
return result;
4951
end function "=";
5052

5153
function "=" (

0 commit comments

Comments
 (0)