From b99cc6ce0eb7ce3b6b09b29c6c9129a775083d60 Mon Sep 17 00:00:00 2001 From: Nikolay Bogoychev Date: Thu, 22 Jul 2021 18:50:57 +0000 Subject: windows compile v3 --- intgemm/stats.inl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/intgemm/stats.inl b/intgemm/stats.inl index 1f8c557..90199be 100644 --- a/intgemm/stats.inl +++ b/intgemm/stats.inl @@ -65,9 +65,9 @@ INTGEMM_TARGET static inline float MaxAbsolute(const float *begin_float, const f INTGEMM_TARGET static inline MeanStd VectorMeanStd(const float *begin_float, const float *end_float, bool absolute) { assert(end_float > begin_float); // Make sure we deal with any number of elements - long num_items = end_float - begin_float; - const long constexpr width = sizeof(FRegister) / sizeof(float); - std::ldiv_t result = std::ldiv(num_items, width); + size_t num_items = end_float - begin_float; + const size_t constexpr width = sizeof(FRegister) / sizeof(float); + std::ldiv_t result = std::ldiv((long)num_items, (long)width); const FRegister *begin = reinterpret_cast(begin_float); const FRegister *end = reinterpret_cast(begin_float + result.quot*width); -- cgit v1.2.3