summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrés <andmarti@gmail.com>2021-03-22 17:09:00 -0300
committerAndrés <andmarti@gmail.com>2021-03-22 17:09:00 -0300
commit0ba3b35f1c933dfdf806714934a2d587912e2ff0 (patch)
tree9f577b821bbd62265b3a25ecb9ec9cc17cdffb32 /src
parentddc4c6a4453980be88c45ba208d7d13bf7821f7c (diff)
More on issue #475
Diffstat (limited to 'src')
-rw-r--r--src/interp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/interp.c b/src/interp.c
index c1264c3..542ddd7 100644
--- a/src/interp.c
+++ b/src/interp.c
@@ -1153,6 +1153,7 @@ double eval(register struct ent * ent, register struct enode * e) {
if (ent == NULL) continue;
if (ent->row == row && ent->col == col) {
sc_error("Circular reference in eval (cell %s%d)", coltoa(col), row);
+ e->op = ERR_;
cellerror = CELLERROR;
return (double) 0;
}