diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-07-10 11:13:07 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-07-10 11:16:19 +0100 |
commit | 9b9952ab4f64a476bbadfd3e6cf1e66c1137ccd7 (patch) | |
tree | 34d566a90edc7467fa39f495204af11f15ff28ed /util | |
parent | eb85ab998b606144daf025285968a5d6031b9aa6 (diff) |
Convert mime data length to use unsigned long
What we want to use is size_t, but we don't want the implied POSIX
dependency. However, POSIX does say that size_t is an unsigned integer
that is no longer than a long, so it would appear safe to use an
unsigned long as a replacement. Safer at least than unsigned int.
Diffstat (limited to 'util')
-rw-r--r-- | util/cairo-trace/trace.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/cairo-trace/trace.c b/util/cairo-trace/trace.c index 6dd58db9..971fa43d 100644 --- a/util/cairo-trace/trace.c +++ b/util/cairo-trace/trace.c @@ -1320,7 +1320,7 @@ _expand_four_tuple_to_five (unsigned char four_tuple[4], static void _write_base85_data (struct _data_stream *stream, const unsigned char *data, - unsigned int length) + unsigned long length) { unsigned char five_tuple[5]; int ret; @@ -1555,7 +1555,7 @@ _emit_image (cairo_surface_t *image, for (mime_type = mime_types; *mime_type; mime_type++) { const unsigned char *mime_data; - unsigned int mime_length; + unsigned long mime_length; DLCALL (cairo_surface_get_mime_data, image, *mime_type, &mime_data, &mime_length); @@ -3652,7 +3652,7 @@ cairo_status_t cairo_surface_set_mime_data (cairo_surface_t *surface, const char *mime_type, const unsigned char *data, - unsigned int length, + unsigned long length, cairo_destroy_func_t destroy, void *closure) { |