commit | b156e69c07ac3c9450f830450b49afdd14c18df9 | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Wed Jun 29 14:16:16 2016 -0700 |
committer | Chih-Hung Hsieh <chh@google.com> | Wed Jun 29 14:16:16 2016 -0700 |
tree | 27cb740b2ee796284778a09c80cf2f17f6d7c4b0 | |
parent | 1f0f8e1b401a3d06b89ce753ff1410dc5ba964c2 [diff] |
Fix misc-macro-parentheses warnings in frameworks/ml. Add parentheses around parameters beside operators. Bug: 28705665 Test: build with clang-tidy Change-Id: I49c84ddbb11853d24fc4bf511c0a219f98ebff32
diff --git a/bordeaux/learning/stochastic_linear_ranker/native/common_defs.h b/bordeaux/learning/stochastic_linear_ranker/native/common_defs.h index 597c4f1..4df8686 100644 --- a/bordeaux/learning/stochastic_linear_ranker/native/common_defs.h +++ b/bordeaux/learning/stochastic_linear_ranker/native/common_defs.h
@@ -39,7 +39,7 @@ #define uint64 uint64_t #define int64 int64_t #include <cutils/log.h> -#define CHECK_GT(x,y) if (x<y) ALOGE("CHECK_GT failed at file %s line %d", \ +#define CHECK_GT(x,y) if ((x)<(y)) ALOGE("CHECK_GT failed at file %s line %d", \ __FILE__, __LINE__); #endif