Skip to content

Commit

Permalink
Removed Questasim compilation warning. Fixes #981.
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsAsplund committed Mar 9, 2024
1 parent 594a2c0 commit c68626d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vunit/vhdl/string_ops/src/string_ops.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ package body string_ops is
stop_pos := stop;
end if;

if substring = "" then
if substring'length = 0 then
return start_pos;
end if;

Expand Down

0 comments on commit c68626d

Please sign in to comment.