ensure the condition is evaluated before applying the negation operator

[ROCm/hip commit: 83d9e889a9]
이 커밋은 다음에 포함됨:
Siu Chi Chan가 2017-09-20 01:38:28 -04:00를 커밋했습니다
1 부모 d4919a95cb
커밋 6884635ae0
1 파일이 변경됨
+1 -1
+1 -1
파일 보기
@@ -99,7 +99,7 @@ extern int HIP_TRACE_API;
// TODO-HCC add a dummy implementation of assert, need to replace with a proper kernel exit call.
#if __HIP_DEVICE_COMPILE__ == 1
#undef assert
#define assert(COND) { if (!COND) {abort();} }
#define assert(COND) { if (!(COND)) {abort();} }
#endif