瀏覽代碼

core: handle conversion warnings

Michele Caini 1 年之前
父節點
當前提交
8156eeb47e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/entt/core/algorithm.hpp

+ 1 - 1
src/entt/core/algorithm.hpp

@@ -100,7 +100,7 @@ struct radix_sort {
             constexpr auto passes = N / Bit;
 
             using value_type = typename std::iterator_traits<It>::value_type;
-            std::vector<value_type> aux(std::distance(first, last));
+            std::vector<value_type> aux(static_cast<std::size_t>(std::distance(first, last)));
 
             auto part = [getter = std::move(getter)](auto from, auto to, auto out, auto start) {
                 constexpr auto mask = (1 << Bit) - 1;