diff --git a/stl/src/_tolower.cpp b/stl/src/_tolower.cpp index a589212c09d..e4984bf603c 100644 --- a/stl/src/_tolower.cpp +++ b/stl/src/_tolower.cpp @@ -72,7 +72,7 @@ _CRTIMP2_PURE int __CLRCALL_PURE_OR_CDECL _Tolower(int c, const _Ctypevec* ploc) // convert int c to multibyte string if (ploc == nullptr ? _cpp_isleadbyte((c >> 8) & 0xff) : (ploc->_Table[(c >> 8) & 0xff] & _LEADBYTE) != 0) { - inbuffer[0] = (c >> 8 & 0xff); + inbuffer[0] = ((c >> 8) & 0xff); inbuffer[1] = static_cast(c); inbuffer[2] = 0; size = 2; diff --git a/stl/src/_toupper.cpp b/stl/src/_toupper.cpp index 61f6a9b482d..9430b30c871 100644 --- a/stl/src/_toupper.cpp +++ b/stl/src/_toupper.cpp @@ -71,7 +71,7 @@ _CRTIMP2_PURE int __CLRCALL_PURE_OR_CDECL _Toupper(int c, const _Ctypevec* ploc) // convert int c to multibyte string if (ploc == nullptr ? _cpp_isleadbyte((c >> 8) & 0xff) : (ploc->_Table[(c >> 8) & 0xff] & _LEADBYTE) != 0) { - inbuffer[0] = (c >> 8 & 0xff); + inbuffer[0] = ((c >> 8) & 0xff); inbuffer[1] = static_cast(c); inbuffer[2] = 0; size = 2;