Commit e69fb3a6 authored by stancakapost's avatar stancakapost
Browse files

do not use lengthof() for uninitialized array (as that would be 0)

parent b74f925d
......@@ -30,7 +30,7 @@ module Sem_2003_the_repeat_statement_002 {
testcase TC_Sem_2003_the_repeat_statement_002() runs on GeneralComp system GeneralComp {
var GeneralComp v_ptc[2];
var integer v_counter := 0;
for(var integer i := 0; i < lengthof(v_ptc); i := i + 1) {
for(var integer i := 0; i < 2; i := i + 1) {
v_ptc[i] := GeneralComp.create;
connect(self:p, v_ptc[i]:p);
v_ptc[i].start(f_mirror());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment