diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2008-11-28 17:12:03 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2008-11-29 10:14:26 +0000 |
commit | d2bcf1d76defda861e1a7f2271046851083ad694 (patch) | |
tree | 338fd723bbc422d38d6179a74d6f1aab2f69440f /src/cairo-path-fixed-private.h | |
parent | 424aba9be558e89b4d42554ca6a5042574e3df75 (diff) | |
download | cairo-d2bcf1d76defda861e1a7f2271046851083ad694.tar.gz |
[path] Carefully check for no more points.
As the empty path points to an embedded buf, we cannot rely on the buf
pointer being NULL to mark end-of-path.
Diffstat (limited to 'src/cairo-path-fixed-private.h')
-rw-r--r-- | src/cairo-path-fixed-private.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cairo-path-fixed-private.h b/src/cairo-path-fixed-private.h index c995e2a91..c7a098559 100644 --- a/src/cairo-path-fixed-private.h +++ b/src/cairo-path-fixed-private.h @@ -54,9 +54,9 @@ typedef char cairo_path_op_t; typedef struct _cairo_path_buf { struct _cairo_path_buf *next, *prev; - int buf_size; - int num_ops; - int num_points; + unsigned int buf_size; + unsigned int num_ops; + unsigned int num_points; cairo_path_op_t *op; cairo_point_t *points; @@ -90,8 +90,8 @@ _cairo_path_fixed_equal (const cairo_path_fixed_t *a, typedef struct _cairo_path_fixed_iter { cairo_path_buf_t *buf; - int n_op; - int n_point; + unsigned int n_op; + unsigned int n_point; } cairo_path_fixed_iter_t; cairo_private void |