Comparing version 1.1.2 to 1.1.3
@@ -243,6 +243,8 @@ 'use strict'; | ||
ref.value = start; | ||
if (!pour.desc && start >= end || pour.desc && start <= end) return; | ||
const incr = pour.desc ? -1 : 1; | ||
for (ref.value = start; !this.routine.returnValue && ref.value !== end; ref.value += incr) { | ||
for (; !this.routine.returnValue && ref.value !== end; ref.value += incr) { | ||
this.array(pour.loop); | ||
@@ -249,0 +251,0 @@ } |
@@ -253,2 +253,4 @@ import {EmptyVisitor} from './empty.js' | ||
ref.value = start | ||
if (!pour.desc && start >= end || pour.desc && start <= end) | ||
@@ -258,3 +260,3 @@ return; | ||
const incr = pour.desc ? -1 : 1 | ||
for (ref.value = start; !this.routine.returnValue && ref.value !== end; ref.value += incr) { | ||
for (; !this.routine.returnValue && ref.value !== end; ref.value += incr) { | ||
this.array(pour.loop) | ||
@@ -261,0 +263,0 @@ } |
{ | ||
"name": "algo-lang", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "Algorithmic language interpreter (in French only for now)", | ||
@@ -5,0 +5,0 @@ "homepage": "https://bitbucket.org/lsystems/algo-lang/overview", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
504531
6388