Fix the currently-unused postfix signed_int::operator++ to do what you'd expect

This commit is contained in:
Eric Frias 2014-10-27 16:37:20 -04:00
parent 307252e23a
commit d1f51dd643

View file

@ -46,7 +46,7 @@ struct signed_int {
operator int32_t()const { return value; }
template<typename T>
signed_int& operator=( const T& v ) { value = v; return *this; }
signed_int& operator++(int){ ++value; return *this; }
signed_int operator++(int) { return value++; }
signed_int& operator++(){ ++value; return *this; }
int32_t value;