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() {} };