mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-03 11:17:58 +02:00
cairo-script: Compare status with CSI enums
CSI_STATUS_SUCCESS is defined as equivalent to CAIRO_STATUS_SUCCESS. We should prefer the former when comparing against csi_status_t variables, else we'll get a warning: cairo-script-interpreter.c:637:23: warning: comparison between ‘csi_status_t’ and ‘enum _cairo_status’ [-Wenum-compare] Signed-off-by: Bryce Harrington <b.harrington@samsung.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
18d66c88a2
commit
39b7d5138e
1 changed files with 1 additions and 1 deletions
|
|
@ -634,7 +634,7 @@ cairo_script_interpreter_finish (csi_t *ctx)
|
|||
if (! ctx->finished) {
|
||||
_csi_finish (ctx);
|
||||
ctx->finished = 1;
|
||||
} else if (status == CAIRO_STATUS_SUCCESS) {
|
||||
} else if (status == CSI_STATUS_SUCCESS) {
|
||||
status = ctx->status = CSI_STATUS_INTERPRETER_FINISHED;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue