ensure the condition is evaluated before applying the negation operator

Tá an tiomantas seo le fáil i:
Siu Chi Chan tiomanta 2017-09-20 01:38:28 -04:00
1 tuismitheoir 794ea64e6e
tiomantas bf6a3f4294
1 comhad athraithe
+1 -1
+1 -1
Féach ar an gComhad
@@ -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