Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/cutorch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugh Perkins <hughperkins@gmail.com>2016-04-14 12:19:08 +0300
committerHugh Perkins <hughperkins@gmail.com>2016-04-14 12:19:08 +0300
commita1290ded6f92526087852c989dbf56be87c16d88 (patch)
tree15bf7af0ef4c4c9ab2610dd3f4135b734f5e6858 /lib/THC/THCReduceApplyUtils.cuh
parenta7d7ec6bbe62fc08e3d5434166f0da7257913af9 (diff)
remove build warnings
Diffstat (limited to 'lib/THC/THCReduceApplyUtils.cuh')
-rw-r--r--lib/THC/THCReduceApplyUtils.cuh4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/THC/THCReduceApplyUtils.cuh b/lib/THC/THCReduceApplyUtils.cuh
index 2d3ad30..d5ac2b5 100644
--- a/lib/THC/THCReduceApplyUtils.cuh
+++ b/lib/THC/THCReduceApplyUtils.cuh
@@ -187,8 +187,8 @@ TensorInfo<IndexType>::collapseDims(int excludeDim) {
}
for (int i = firstNonOneDim - 1; i >= 0; --i) {
- long sizeOuter = sizes[i];
- long strideOuter = strides[i];
+ IndexType sizeOuter = sizes[i];
+ IndexType strideOuter = strides[i];
if ((excludeDim != i) && (excludeDim != i + 1)) {
if (sizeOuter == 1) {