From cdb88416a850cea68baab90685c14aa1d7624111 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 12 Aug 2004 21:49:48 +0000 Subject: Fix bug in FixedStack.pop(). Returned wrong value. svn-id: r14567 --- common/stack.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common') diff --git a/common/stack.h b/common/stack.h index add790d695..3b869b29d1 100644 --- a/common/stack.h +++ b/common/stack.h @@ -57,7 +57,7 @@ public: T pop() { T tmp; assert(_size > 0); - tmp = _stack[_size]; + tmp = _stack[_size - 1]; _stack[--_size] = 0; return tmp; } -- cgit v1.2.3