compile fix

This commit is contained in:
AlexeyAB
2019-06-09 00:19:44 +03:00
parent 88ce9dcca6
commit d1be8ddb33
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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);
}