From ab8e832c18caf1639a0edf36133395ce0444087d Mon Sep 17 00:00:00 2001 From: Cheng Date: Sat, 11 Jan 2025 05:33:11 +0900 Subject: [PATCH] 0ul is not size_t on MSVC (#1762) --- mlx/ops.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlx/ops.cpp b/mlx/ops.cpp index f1ca2e945..9dda4f228 100644 --- a/mlx/ops.cpp +++ b/mlx/ops.cpp @@ -824,7 +824,7 @@ array slice_update( // Broadcast update with unspecified axes auto up_shape = update.shape(); - auto dim_diff = std::max(src.ndim() - update.ndim(), 0ul); + auto dim_diff = std::max(src.ndim() - update.ndim(), size_t(0)); up_shape.insert( up_shape.begin(), src.shape().begin(), src.shape().begin() + dim_diff); for (int d = dim_diff; d < src.ndim(); ++d) {