From f4b2867b290d416dafbdfe13425e7acf5a7f6a02 Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Fri, 25 Aug 2023 19:28:45 +0200 Subject: [PATCH] Fix compiling for 32bit architectures --- src/texture.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/texture.rs b/src/texture.rs index 01655d6..71d72a0 100644 --- a/src/texture.rs +++ b/src/texture.rs @@ -117,7 +117,7 @@ impl TextureDescriptorRef { height, depth, } = size; - let count = (width.max(height).max(depth) as f64).log2().ceil() as u64; + let count = (width.max(height).max(depth) as f64).log2().ceil() as _; self.set_mipmap_level_count(count); }