diff options
Diffstat (limited to 'net/irrtoolset-nox11/patches/patch-ao')
-rw-r--r-- | net/irrtoolset-nox11/patches/patch-ao | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/net/irrtoolset-nox11/patches/patch-ao b/net/irrtoolset-nox11/patches/patch-ao new file mode 100644 index 00000000000..48a1fba5d04 --- /dev/null +++ b/net/irrtoolset-nox11/patches/patch-ao @@ -0,0 +1,17 @@ +$NetBSD: patch-ao,v 1.1.1.1 2005/02/28 12:37:30 spz Exp $ + +--- src/util/Stack.hh.orig 2005-02-26 11:50:00.000000000 +0100 ++++ src/util/Stack.hh +@@ -100,9 +100,9 @@ class BoundedStack : BoundedQueue<TYPE> + public: + BoundedStack(int size) : BoundedQueue<TYPE>(size) {} + void push(TYPE elt) { enq(elt); } +- TYPE pop() { return q[--last]; } +- int getPosition() { return last; } +- void setPosition(int pos) { last = pos; } ++ TYPE pop() { return BoundedQueue<TYPE>::q[--BoundedQueue<TYPE>::last]; } ++ int getPosition() { return BoundedQueue<TYPE>::last; } ++ void setPosition(int pos) { BoundedQueue<TYPE>::last = pos; } + void clear() { + BoundedQueue<TYPE>::clear(); + } |