Skip to content

Commit 9670d6b

Browse files
committed
ceil length division
1 parent a74dd3d commit 9670d6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Encodings.pkg.vhdl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ package body Encodings is
3939

4040
function base16_decode(constant str: string) return string is
4141
alias str_i : string(1 to str'length) is str;
42-
variable result: string (1 to str'length / 2);
42+
variable result: string (1 to (str'length + 1) / 2);
4343
begin
4444
for x in result'range loop
4545
result(x) := character'val(to_integer(

0 commit comments

Comments
 (0)