fix further annotation warnings for vs2022

This commit is contained in:
Daan Leijen 2022-04-19 17:35:07 -07:00
parent 84126e8dc0
commit f4744bd192

View file

@ -279,7 +279,9 @@ static inline bool mi_count_size_overflow(size_t count, size_t size, size_t* tot
return false;
}
else if (mi_unlikely(mi_mul_overflow(count, size, total))) {
#if !defined(NDEBUG)
_mi_error_message(EOVERFLOW, "allocation request is too large (%zu * %zu bytes)\n", count, size);
#endif
*total = SIZE_MAX;
return true;
}