diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-08-26 15:54:18 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-08-26 15:54:18 +0200 |
commit | 38fc036f9884a0f4c1a6ed1e684dc39938b2539f (patch) | |
tree | 6beeb5d06f58941b45c1af3b3e5156e8c514fd4d /libxsde | |
parent | ce65e0086daf4458209118e9935609950e387b13 (diff) |
Return correct element from the dynamic part of the stack
Diffstat (limited to 'libxsde')
-rw-r--r-- | libxsde/xsde/cxx/stack.ixx | 2 |
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:: |