32/64 bit int stuff

This commit is contained in:
Eric Frias 2014-05-15 14:14:27 -04:00
parent 7078ebf382
commit b3e30e893b

View file

@ -33,7 +33,7 @@ struct unsigned_int {
* Uses the google protobuf algorithm for seralizing signed numbers
*/
struct signed_int {
signed_int( int64_t v = 0 ):value(v){}
signed_int( int32_t v = 0 ):value(v){}
operator int32_t()const { return value; }
template<typename T>
signed_int& operator=( const T& v ) { value = v; return *this; }