mirror of
https://github.com/louisrubet/rpn
synced 2025-01-16 03:41:28 +01:00
#51: type command does not drop its argument anymore
This commit is contained in:
parent
3fb349e00b
commit
9ba4654812
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ void type()
|
|||
{
|
||||
MIN_ARGUMENTS(1);
|
||||
|
||||
int type = _stack->pop_back()->_type;
|
||||
int type = _stack->back()->_type;
|
||||
if (type < 0 || type >= (int)cmd_max)
|
||||
type = (int)cmd_undef;
|
||||
|
||||
|
|
Loading…
Reference in a new issue