Skip to content

Commit

Permalink
NiftyCounter: Fix decrement
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas-w committed Aug 3, 2018
1 parent 18658a0 commit 2c8be68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/NiftyCounter.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ template <typename T, void C(), void D()> class _NiftyCounterCD_Base : public _N
static void init() { C(); }
static void deinit() { D(); }
static int inc() { return T::s_count++; }
static int dec() { return T::s_count--; }
static int dec() { return --T::s_count; }
};


Expand Down

0 comments on commit 2c8be68

Please sign in to comment.