aboutsummaryrefslogtreecommitdiffstats
path: root/builtins.c
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2018-02-27 23:49:27 -0500
committerClyne Sullivan <tullivan99@gmail.com>2018-02-27 23:49:27 -0500
commit7b08dbbbe9a3dbe326a751497d27b9e187142eb8 (patch)
tree3aa146c3deb65f1e0a6bc8bf36664acad4357188 /builtins.c
parent609ff568843dae9d003153509aaa0080aea7a303 (diff)
stable for calculator
Diffstat (limited to 'builtins.c')
-rw-r--r--builtins.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/builtins.c b/builtins.c
index 9c82b8d..309e1d8 100644
--- a/builtins.c
+++ b/builtins.c
@@ -94,13 +94,15 @@ int ifunc_do(interpreter *it)
int ifunc_while(interpreter *it)
{
- int c = igetarg_integer(it, 0);
+ //int c = igetarg_integer(it, 0);
ipop(it);
int nidx = (int)ipop(it);
- if (c != 0) {
+ //if (c != 0) {
//ipush(it, (void *)nidx);
it->lnidx = nidx - 1;
- }
+ //} else {
+ // c++;
+ //}
ipush(it, 0);
return 0;
}