diff --git a/src/hb-open-type.hh b/src/hb-open-type.hh index 478bb60ac..28353e4e5 100644 --- a/src/hb-open-type.hh +++ b/src/hb-open-type.hh @@ -170,8 +170,8 @@ struct Tag : HBUINT32 { Tag& operator = (hb_tag_t i) { HBUINT32::operator= (i); return *this; } /* What the char* converters return is NOT nul-terminated. Print using "%.4s" */ - operator const char* () const { return reinterpret_cast (&this->v); } - operator char* () { return reinterpret_cast (&this->v); } + operator const char* () const { return reinterpret_cast (this); } + operator char* () { return reinterpret_cast (this); } public: DEFINE_SIZE_STATIC (4); };