Port PR 15475 (#15483)

This commit is contained in:
Ilya Churaev 2023-02-03 20:29:35 +04:00 committed by GitHub
parent de1631d67d
commit 1935f3504d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -518,13 +518,13 @@ private:
if (!std::is_same<T, StorageDataType>::value) {
OPENVINO_ASSERT(!std::numeric_limits<T>::is_signed ||
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)
# pragma warning(pop)
#endif
#ifdef __clang__
# pragma GangC diagnostic pop
# pragma clang diagnostic pop
#endif
#ifdef __GNUC__
# pragma GCC diagnostic pop