mirror of
https://github.com/ml-explore/mlx.git
synced 2025-09-17 17:28:10 +08:00
Use int64_t instead of ssize_t (#1673)
This commit is contained in:
@@ -70,7 +70,7 @@ bool is_same_shape(const std::vector<array>& arrays);
|
||||
template <typename T>
|
||||
int check_shape_dim(const T dim) {
|
||||
constexpr bool is_signed = std::numeric_limits<T>::is_signed;
|
||||
using U = std::conditional_t<is_signed, ssize_t, size_t>;
|
||||
using U = std::conditional_t<is_signed, int64_t, size_t>;
|
||||
constexpr U min = static_cast<U>(std::numeric_limits<int>::min());
|
||||
constexpr U max = static_cast<U>(std::numeric_limits<int>::max());
|
||||
|
||||
|
Reference in New Issue
Block a user