瀏覽代碼

Merge branch 'fixMatrix' of LInE/ivprog into visualui

Lucas de Souza 5 年之前
父節點
當前提交
ad381bb22d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      js/processor/semantic/semanticAnalyser.js

+ 1 - 1
js/processor/semantic/semanticAnalyser.js

@@ -251,7 +251,7 @@ export class SemanticAnalyser {
             } else {
               throw ProcessorErrorFactory.vector_line_outbounds_full(id, literal.value.length, lines.values.toNumber(), literal.sourceInfo)
             }
-          } else if (line.value.isNeg()) {
+          } else if (lines.value.isNeg()) {
             throw ProcessorErrorFactory.array_dimension_not_positive_full(literal.sourceInfo);
           }