diff --git a/lib/pls/include/pls/internal/base/error_handling.h b/lib/pls/include/pls/internal/base/error_handling.h index 341b7fb..15a2df6 100644 --- a/lib/pls/include/pls/internal/base/error_handling.h +++ b/lib/pls/include/pls/internal/base/error_handling.h @@ -12,6 +12,6 @@ * (or its inclusion adds too much overhead). */ #define PLS_ERROR(msg) printf("%s\n", msg); exit(1); -#define PLS_ASSERT(cond, msg) if (!cond) { PLS_ERROR(msg) } +#define PLS_ASSERT(cond, msg) if (!(cond)) { PLS_ERROR(msg) } #endif //PLS_ERROR_HANDLING_H