Skip to content

Commit 727942b

Browse files
lantigasoumith
authored andcommitted
Use proper type for counter
1 parent 610d9d0 commit 727942b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torch/csrc/generic/Tensor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#define COPY_FROM_ARRAY(ELTYPE) \
2727
{ \
2828
ELTYPE *data = (ELTYPE*)PyArray_DATA(array); \
29-
for (ptrdiff_t i=0; i<storage_size; i++) { \
29+
for (size_t i=0; i<storage_size; i++) { \
3030
storage->data[i] = data[i]; \
3131
} \
3232
}

0 commit comments

Comments
 (0)