From 8cfd26422423c306a6444ef44958fa917c969794 Mon Sep 17 00:00:00 2001 From: Matthias Maennich via libabigail Date: Mon, 15 Apr 2019 18:05:16 +0100 Subject: [PATCH] diff-utils: point: fix postfix decrement/increment operator The postfix increment / decrement operators were implemented by calling themselves recursively. Fix that by implementing these in terms of their prefix counter parts. * include/abg-diff-utils.h: fix postfix dec/inc operator Signed-off-by: Matthias Maennich --- include/abg-diff-utils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/abg-diff-utils.h b/include/abg-diff-utils.h index 4e65fe8f..1c71185e 100644 --- a/include/abg-diff-utils.h +++ b/include/abg-diff-utils.h @@ -186,7 +186,7 @@ public: operator--(int) { point tmp(*this); - (*this)--; + --(*this); return tmp; } @@ -194,7 +194,7 @@ public: operator++(int) { point tmp(*this); - (*this)++; + ++(*this); return tmp; } -- 2.43.5