summarylogtreecommitdiffstats
path: root/Platform-bitwise-or.patch
diff options
context:
space:
mode:
authorZerophase2018-10-23 18:59:08 -0500
committerZerophase2018-10-23 19:00:12 -0500
commit2a7406a82e9b8c92697fb22eae9b3c59652faafd (patch)
treeedb973ea915afdfbb99d683a5f1dd957e35cd4d8 /Platform-bitwise-or.patch
parent646b64b553f8cb2c351ba1296a299ae1d6e647c7 (diff)
downloadaur-2a7406a82e9b8c92697fb22eae9b3c59652faafd.tar.gz
Update to 4.20.3
Diffstat (limited to 'Platform-bitwise-or.patch')
-rw-r--r--Platform-bitwise-or.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/Platform-bitwise-or.patch b/Platform-bitwise-or.patch
new file mode 100644
index 000000000000..491d8f224668
--- /dev/null
+++ b/Platform-bitwise-or.patch
@@ -0,0 +1,11 @@
+--- Platform.h 2018-10-11 14:05:07.503192188 -0500
++++ Platform.h_new 2018-10-11 14:52:43.025935194 -0500
+@@ -802,7 +802,7 @@
+ static_assert((!TAreTypesEqual<ANSICHAR, WIDECHAR>::Value), "ANSICHAR and WIDECHAR should be different types.");
+ static_assert((!TAreTypesEqual<ANSICHAR, UCS2CHAR>::Value), "ANSICHAR and CHAR16 should be different types.");
+ static_assert((!TAreTypesEqual<WIDECHAR, UCS2CHAR>::Value), "WIDECHAR and CHAR16 should be different types.");
+- static_assert((TAreTypesEqual<TCHAR, ANSICHAR>::Value || TAreTypesEqual<TCHAR, WIDECHAR>::Value), "TCHAR should either be ANSICHAR or WIDECHAR.");
++ static_assert((TAreTypesEqual<TCHAR, ANSICHAR>::Value | TAreTypesEqual<TCHAR, WIDECHAR>::Value), "TCHAR should either be ANSICHAR or WIDECHAR.");
+
+ static_assert(sizeof(uint8) == 1, "BYTE type size test failed.");
+ static_assert(int32(uint8(-1)) == 0xFF, "BYTE type sign test failed.");