Explorar el Código

Fix warning in Str.h

1vanK hace 3 años
padre
commit
c333476d99
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Source/Urho3D/Container/Str.h

+ 1 - 1
Source/Urho3D/Container/Str.h

@@ -568,7 +568,7 @@ private:
     /// MSB of the last byte is used as a flag.
     inline static constexpr u8 SSO_MASK = 0b10000000u;
     
-    inline static constexpr u8 INVERTED_SSO_MASK = ~SSO_MASK;
+    inline static constexpr u8 INVERTED_SSO_MASK = static_cast<u8>(~SSO_MASK);
 
     unsigned GetShortStringLength() const
     {