ensure the condition is evaluated before applying the negation operator

Cette révision appartient à :
Siu Chi Chan
2017-09-20 01:38:28 -04:00
Parent 2db70fe5fd
révision 83d9e889a9
+1 -1
Voir le fichier
@@ -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