diff --git a/src/hb-open-type-private.hh b/src/hb-open-type-private.hh index cde6414ed..a0ecc2e8c 100644 --- a/src/hb-open-type-private.hh +++ b/src/hb-open-type-private.hh @@ -370,7 +370,7 @@ template class BEInt { public: - inline class BEInt& operator = (Type i) { hb_be_uint16_put (v,i); return *this; } + inline void set (Type i) { hb_be_uint16_put (v,i); } inline operator Type () const { return hb_be_uint16_get (v); } inline bool operator == (const BEInt& o) const { return hb_be_uint16_cmp (v, o.v); } inline bool operator != (const BEInt& o) const { return !(*this == o); } @@ -380,7 +380,7 @@ template class BEInt { public: - inline class BEInt& operator = (Type i) { hb_be_uint32_put (v,i); return *this; } + inline void set (Type i) { hb_be_uint32_put (v,i); } inline operator Type () const { return hb_be_uint32_get (v); } inline bool operator == (const BEInt& o) const { return hb_be_uint32_cmp (v, o.v); } inline bool operator != (const BEInt& o) const { return !(*this == o); } @@ -391,7 +391,7 @@ class BEInt template struct IntType { - inline void set (Type i) { v = i; } + inline void set (Type i) { v.set (i); } inline operator Type(void) const { return v; } inline bool operator == (const IntType &o) const { return v == o.v; } inline bool operator != (const IntType &o) const { return v != o.v; }