aboutsummaryrefslogtreecommitdiff
path: root/libxsde
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-08-26 15:54:18 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-08-26 15:54:18 +0200
commit38fc036f9884a0f4c1a6ed1e684dc39938b2539f (patch)
tree6beeb5d06f58941b45c1af3b3e5156e8c514fd4d /libxsde
parentce65e0086daf4458209118e9935609950e387b13 (diff)
Return correct element from the dynamic part of the stack
Diffstat (limited to 'libxsde')
-rw-r--r--libxsde/xsde/cxx/stack.ixx2
1 files changed, 1 insertions, 1 deletions
diff --git a/libxsde/xsde/cxx/stack.ixx b/libxsde/xsde/cxx/stack.ixx
index 8b69407..bef310e 100644
--- a/libxsde/xsde/cxx/stack.ixx
+++ b/libxsde/xsde/cxx/stack.ixx
@@ -67,7 +67,7 @@ namespace xsde
inline void* stack::
top ()
{
- return size_ == 1 ? first_ : data_ + (size_ - 1) * el_size_;
+ return size_ == 1 ? first_ : data_ + (size_ - 2) * el_size_;
}
inline void stack::