Fix DefaultIntegral pre decrement operator
authorMichael Andres <ma@suse.de>
Thu, 19 Apr 2012 14:45:18 +0000 (16:45 +0200)
committerMichael Andres <ma@suse.de>
Thu, 19 Apr 2012 14:45:59 +0000 (16:45 +0200)
zypp/base/DefaultIntegral.h

index 4ddf774..fc0a0b8 100644 (file)
@@ -71,7 +71,7 @@ namespace zypp
       DefaultIntegral & operator/=( _Tp rhs ) { _val /= rhs; return *this; }
 
       DefaultIntegral & operator++(/*prefix*/) { ++_val; return *this; }
-      DefaultIntegral & operator--(/*prefix*/) { ++_val; return *this; }
+      DefaultIntegral & operator--(/*prefix*/) { --_val; return *this; }
 
       DefaultIntegral operator++(int/*postfix*/) { return _val++; }
       DefaultIntegral operator--(int/*postfix*/) { return _val--; }