From 6b509bd81de3f1538c23b44a5194087887be0004 Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 15 Mar 1995 17:07:28 +0000 Subject: [PATCH] Corretta backtrace git-svn-id: svn://10.65.10.50/trunk@1128 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- include/expr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/expr.h b/include/expr.h index d0c5d37bf..f454b45b8 100755 --- a/include/expr.h +++ b/include/expr.h @@ -109,7 +109,7 @@ public: void begin() { _ip = 0;} // Mette all'inizio il puntatore all'istruzione corrente TCode& step() { return (TCode&) _rpn[end() ? _ip : _ip++];} // Incrementa istruction pointer bool end() const { return ((TCode&) _rpn[_ip]).getsym() == _endsym;} // Ritorna vero se _ip ha raggiunto il simbolo di fine codice - void backtrace(int step = 1) { _ip > step ? _ip -= step : begin(); } + void backtrace(int step = 1) { if (_ip > step) _ip -= step; else begin(); } TCodearray(int size = 50); // Il costruttore crea un array di 10 elementi virtual ~TCodearray() {} };