Skip to content

Commit c65319c

Browse files
committed
use alias to avoid a copy
1 parent 0571dce commit c65319c

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
@@ -38,7 +38,7 @@ package body Encodings is
3838
end function;
3939

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

0 commit comments

Comments
 (0)