Skip to content

Commit

Permalink
fix to avoid overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kmaehashi committed Apr 5, 2018
1 parent 8396ad0 commit b3b9835
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cupy/core/core.pyx
Expand Up @@ -2467,7 +2467,7 @@ cpdef ndarray concatenate_method(tup, int axis):

cpdef ndarray _concatenate(list arrays, Py_ssize_t axis, tuple shape, dtype):
cdef ndarray a, ret
cdef int i
cdef Py_ssize_t i
cdef bint all_same_type, same_shape_and_contiguous
cdef Py_ssize_t axis_size
# If arrays are large, Issuing each copy method is efficient.
Expand Down
2 changes: 1 addition & 1 deletion cupy/core/internal.pyx
Expand Up @@ -143,7 +143,7 @@ cpdef vector.vector[Py_ssize_t] infer_unknown_dimension(


@cython.profile(False)
cpdef inline int _extract_slice_element(x) except *:
cpdef inline Py_ssize_t _extract_slice_element(x) except *:
try:
return x.__index__()
except AttributeError:
Expand Down

0 comments on commit b3b9835

Please sign in to comment.