From d1be8ddb33964a8b0cfcbf3568d8cf24064456c4 Mon Sep 17 00:00:00 2001 From: AlexeyAB Date: Sun, 9 Jun 2019 00:19:44 +0300 Subject: [PATCH] compile fix --- src/col2im.c | 2 +- src/im2col.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/col2im.c b/src/col2im.c index 660b0e58..3f18070b 100644 --- a/src/col2im.c +++ b/src/col2im.c @@ -48,7 +48,7 @@ void caffe_set(const int N, const float alpha, float* Y) { } } -inline int is_a_ge_zero_and_a_lt_b(int a, int b) { +inline static int is_a_ge_zero_and_a_lt_b(int a, int b) { return (unsigned)(a) < (unsigned)(b); } diff --git a/src/im2col.c b/src/im2col.c index ee08405a..45613db6 100644 --- a/src/im2col.c +++ b/src/im2col.c @@ -45,7 +45,7 @@ void im2col_cpu(float* data_im, // therefore its value is always lower than 0x800... where casting // negative value of a parameter converts it to value higher than 0x800... // The casting allows to use one condition instead of two. -inline int is_a_ge_zero_and_a_lt_b(int a, int b) { +inline static int is_a_ge_zero_and_a_lt_b(int a, int b) { return (unsigned)(a) < (unsigned)(b); }