File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1919typedef SSIZE_T ssize_t ;
2020#endif
2121#else
22+ #include < cstdint>
2223#include < cstdlib>
2324#endif
2425#include < iostream>
@@ -117,7 +118,7 @@ typedef SSIZE_T ssize_t;
117118// structure, and not held as a reference or a pointer.
118119template <typename T>
119120typename std::enable_if<
120- !std::is_pointer <T>::value && std::is_pod <T>::value ,
121+ !std::is_pointer_v <T> && std::is_standard_layout_v <T>,
121122 size_t >::type static inline constexpr array_sizeof (T const &array) {
122123 return sizeof (array) / (reinterpret_cast <uintptr_t >(&array[1 ]) -
123124 reinterpret_cast <uintptr_t >(&array[0 ]));
Original file line number Diff line number Diff line change @@ -258,8 +258,8 @@ enum CPUSubType {
258258};
259259
260260static inline bool CPUTypeIs64Bit (CPUType type) {
261- return type & kCPUArchABI64 || type == kCPUTypeALPHA ||
262- type == kCPUTypeRISCV64 ;
261+ return static_cast < int >( type) & static_cast < int >( kCPUArchABI64 ) ||
262+ type == kCPUTypeALPHA || type == kCPUTypeRISCV64 ;
263263}
264264
265265char const *GetCPUTypeName (CPUType type);
You can’t perform that action at this time.
0 commit comments