From 94c806ffadc4b052bfaabe1904b79cabc6c10140 Mon Sep 17 00:00:00 2001 From: AlexeyAB Date: Sun, 9 Jun 2019 03:07:04 +0300 Subject: [PATCH] final fix --- src/col2im.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/col2im.c b/src/col2im.c index dea72f24..c31c868e 100644 --- a/src/col2im.c +++ b/src/col2im.c @@ -30,7 +30,7 @@ void col2im_cpu(float* data_col, int im_row = h_offset + h * stride; int im_col = w_offset + w * stride; int col_index = (c * height_col + h) * width_col + w; - double val = data_col[col_index]; + float val = data_col[col_index]; col2im_add_pixel(data_im, height, width, channels, im_row, im_col, c_im, pad, val); } @@ -43,7 +43,8 @@ void caffe_set(const int N, const float alpha, float* Y) { memset(Y, 0, sizeof(float) * N); // NOLINT(caffe/alt_fn) return; } - for (int i = 0; i < N; ++i) { + int i; + for (i = 0; i < N; ++i) { Y[i] = alpha; } }