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
This commit is contained in:
Uli Schlachter 2021-04-25 07:20:26 +00:00
commit 3c00a849f6

View file

@ -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);