mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Fix compiler errors
Conflicted with the 'min' and 'max' macro's, putting them in parentheses fixes it.
This commit is contained in:
parent
d31fa3b8c7
commit
931ee11bf3
@ -13,7 +13,7 @@ struct compression_encoder_properties_interface
|
||||
template <typename T>
|
||||
inline T clamp(T minimum, T maximum, T value)
|
||||
{
|
||||
return std::min(std::max(minimum, value), maximum);
|
||||
return (std::min)((std::max)(minimum, value), maximum);
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -66,7 +66,7 @@ class sub_streambuf :
|
||||
ELEM_TYPE* base = _internalBuffer;
|
||||
|
||||
_inputStream->seekg(_currentPosition, std::ios::beg);
|
||||
_inputStream->read(_internalBuffer, std::min(static_cast<size_t>(INTERNAL_BUFFER_SIZE), static_cast<size_t>(_endPosition - _currentPosition)));
|
||||
_inputStream->read(_internalBuffer, (std::min)(static_cast<size_t>(INTERNAL_BUFFER_SIZE), static_cast<size_t>(_endPosition - _currentPosition)));
|
||||
size_t n = static_cast<size_t>(_inputStream->gcount());
|
||||
|
||||
_currentPosition += n;
|
||||
|
Loading…
x
Reference in New Issue
Block a user