Browse Source

Added missing casts to signed/unsigned char

release/0.19
Jessica James 8 years ago
parent
commit
d81a653f1b
  1. 2
      Jupiter/Readable_String.h

2
Jupiter/Readable_String.h

@ -431,6 +431,8 @@ namespace Jupiter
/** Conversion operators */
explicit inline operator bool() const { return this->asBool(); }
explicit inline operator signed char() const { return static_cast<signed char>(this->asInt()); }
explicit inline operator unsigned char() const { return static_cast<unsigned char>(this->asUnsignedInt()); }
explicit inline operator short() const { return static_cast<short>(this->asInt()); }
explicit inline operator unsigned short() const { return static_cast<unsigned short>(this->asUnsignedInt()); }
explicit inline operator int() const { return this->asInt(); }

Loading…
Cancel
Save