Port PR 15475 (#15483)
This commit is contained in:
parent
de1631d67d
commit
1935f3504d
@ -518,13 +518,13 @@ private:
|
|||||||
if (!std::is_same<T, StorageDataType>::value) {
|
if (!std::is_same<T, StorageDataType>::value) {
|
||||||
OPENVINO_ASSERT(!std::numeric_limits<T>::is_signed ||
|
OPENVINO_ASSERT(!std::numeric_limits<T>::is_signed ||
|
||||||
std::numeric_limits<StorageDataType>::lowest() <= value);
|
std::numeric_limits<StorageDataType>::lowest() <= value);
|
||||||
OPENVINO_ASSERT(value <= std::numeric_limits<StorageDataType>::max());
|
OPENVINO_ASSERT(std::numeric_limits<StorageDataType>::max() >= value);
|
||||||
}
|
}
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
# pragma warning(pop)
|
# pragma warning(pop)
|
||||||
#endif
|
#endif
|
||||||
#ifdef __clang__
|
#ifdef __clang__
|
||||||
# pragma GangC diagnostic pop
|
# pragma clang diagnostic pop
|
||||||
#endif
|
#endif
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
# pragma GCC diagnostic pop
|
# pragma GCC diagnostic pop
|
||||||
|
Loading…
Reference in New Issue
Block a user