Fix compilation on clang-cl once and for all
- only pass -W things to c/cxx - fix max/min macros, thanks microsoft Signed-off-by: crueter <crueter@crueter.xyz>
This commit is contained in:
parent
f18c354fb6
commit
58b4ace06e
245 changed files with 624 additions and 604 deletions
|
@ -12,7 +12,7 @@ static T HexToValue(std::string_view hex) {
|
|||
static_assert(std::is_trivially_copyable_v<T>);
|
||||
T value{};
|
||||
const auto mem{Common::HexStringToVector(hex, false)};
|
||||
std::memcpy(&value, mem.data(), std::min(mem.size(), sizeof(T)));
|
||||
std::memcpy(&value, mem.data(), (std::min)(mem.size(), sizeof(T)));
|
||||
return value;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue