Commits

Christos Kannas committed 5f192c1

Fix: Assign initial value to variable i in for loop.

  • Participants
  • Parent commits ca53a21

Comments (0)

Files changed (1)

       C_Inline("\t\t\tfor(int j = 1; j <= Spc_Idx[idx * SpcNr + i]; ++j)");
       C_Inline("\t\t\t\tprod *= V[i];");
       C_Inline("\t\t}");
-      C_Inline("\t\tfor(; i < SpcNr; ++i){");
+      C_Inline("\t\tfor(int i = VarNr; i < SpcNr; ++i){");
       C_Inline("\t\t\tfor(int j = 1; j <= Spc_Idx[idx * SpcNr + i]; ++j)");
       C_Inline("\t\t\t\tprod *= F[i - VarNr];");
       C_Inline("\t\t}");