[cairo-commit] 2 commits - src/cairo-error-private.h
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sun Apr 25 07:20:28 UTC 2021
src/cairo-error-private.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 3c00a849f6f4e280e95bb21b6f6a3946cabf65af
Merge: de2a71b23 f4a3236d1
Author: Uli Schlachter <psychon at znc.in>
Date: Sun Apr 25 07:20:26 2021 +0000
Merge branch 'fix-cairo-status-is-error' into 'master'
Add missing parentheses to _cairo_status_is_error and _cairo_int_status_is_error
See merge request cairo/cairo!161
commit f4a3236d144e21f3cca3f2374b29ba907ffbd523
Author: Anton Danilkin <afdw at yandex.ru>
Date: Sat Apr 24 14:50:30 2021 +0200
Add missing parentheses to _cairo_status_is_error and _cairo_int_status_is_error
diff --git a/src/cairo-error-private.h b/src/cairo-error-private.h
index 1ab57ddf8..d8cc7c004 100644
--- a/src/cairo-error-private.h
+++ b/src/cairo-error-private.h
@@ -112,10 +112,10 @@ enum _cairo_int_status {
typedef enum _cairo_int_status cairo_int_status_t;
#define _cairo_status_is_error(status) \
- (status != CAIRO_STATUS_SUCCESS && status < CAIRO_STATUS_LAST_STATUS)
+ ((status) != CAIRO_STATUS_SUCCESS && (status) < CAIRO_STATUS_LAST_STATUS)
#define _cairo_int_status_is_error(status) \
- (status != CAIRO_INT_STATUS_SUCCESS && status < CAIRO_INT_STATUS_LAST_STATUS)
+ ((status) != CAIRO_INT_STATUS_SUCCESS && (status) < CAIRO_INT_STATUS_LAST_STATUS)
cairo_private cairo_status_t
_cairo_error (cairo_status_t status);
More information about the cairo-commit
mailing list