diff options
author | Bryce Harrington <b.harrington@samsung.com> | 2014-01-29 17:07:04 -0800 |
---|---|---|
committer | Bryce Harrington <b.harrington@samsung.com> | 2014-01-31 11:26:02 -0800 |
commit | 39b7d5138eb83cc2d4f3ab6039894cc61c7fe4c7 (patch) | |
tree | ca09dd1ad7e3083020a069253fb815e37a9fb694 /util | |
parent | 18d66c88a2f1068fb490efa33ead93d0e2d71c41 (diff) |
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>
Diffstat (limited to 'util')
-rw-r--r-- | util/cairo-script/cairo-script-interpreter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/cairo-script/cairo-script-interpreter.c b/util/cairo-script/cairo-script-interpreter.c index bdd525542..50170fc29 100644 --- a/util/cairo-script/cairo-script-interpreter.c +++ b/util/cairo-script/cairo-script-interpreter.c @@ -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; } |