From 380474945fb66e45b98af4a4e50acfd2003ab84d Mon Sep 17 00:00:00 2001 From: jmoenig Date: Sat, 27 Apr 2019 10:01:40 +0200 Subject: [PATCH] accept text representing numbers as inputs to NUMBERS prim --- src/threads.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/threads.js b/src/threads.js index 7e8ec6f4..f1ff6ade 100644 --- a/src/threads.js +++ b/src/threads.js @@ -1811,19 +1811,19 @@ Process.prototype.reportNumbers = function (start, end) { // without blocking the UI var dta; - this.assertType(start, 'number'); - this.assertType(end, 'number'); + this.assertType(+start, 'number'); + this.assertType(+end, 'number'); if (this.context.accumulator === null) { this.context.accumulator = { target : new List(), end : null, - idx : start + idx : +start }; this.context.accumulator.target.isLinked = true; this.context.accumulator.end = this.context.accumulator.target; } dta = this.context.accumulator; - if (dta.idx > end) { + if (dta.idx > +end) { dta.end.rest = new List(); this.returnValueToParentContext(dta.target.cdr()); return;