diff --git a/vunit/vhdl/string_ops/src/string_ops.vhd b/vunit/vhdl/string_ops/src/string_ops.vhd index 44798c38f..7750d4428 100644 --- a/vunit/vhdl/string_ops/src/string_ops.vhd +++ b/vunit/vhdl/string_ops/src/string_ops.vhd @@ -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;