diff options
author | Chih-hung Hsieh <chh@google.com> | 2016-06-30 21:29:45 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2016-06-30 21:29:45 +0000 |
commit | 428ea3e51e9e03069570db1c5f4fc61e29a9b0cb (patch) | |
tree | f53429d1b9335532203ea5b1ed689be98533c6e9 | |
parent | 67c67fc89845c97d15869f6e2578658e9f3cdac5 (diff) | |
parent | 3ac940f03199ef04fa98c6829b32bc14e7867d0b (diff) | |
download | rs-428ea3e51e9e03069570db1c5f4fc61e29a9b0cb.tar.gz |
Merge "Fix misc-macro-parentheses warnings in frameworks/rs."
-rw-r--r-- | cpp/rsCppInternal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/rsCppInternal.h b/cpp/rsCppInternal.h index 69857d77..c51f7a0a 100644 --- a/cpp/rsCppInternal.h +++ b/cpp/rsCppInternal.h @@ -24,12 +24,12 @@ #include "rsDispatch.h" #define tryDispatch(rs, dispatch) \ - if (rs->getError() == RS_SUCCESS) { \ + if ((rs)->getError() == RS_SUCCESS) { \ dispatch; \ } #define createDispatch(rs, dispatch) \ - rs->getError() == RS_SUCCESS ? dispatch : nullptr + rs->getError() == RS_SUCCESS ? (dispatch) : nullptr #undef LOG_TAG #undef LOG_NDEBUG |