Bug 700773. qcms: cleanup up some integer types. r=bgirard
This fixes a couple of warnings in clang and makes things more consistent.
--- a/gfx/qcms/iccread.c
+++ b/gfx/qcms/iccread.c
@@ -397,21 +397,21 @@ static struct XYZNumber read_tag_XYZType
return num;
}
// Read the tag at a given offset rather then the tag_index.
// This method is used when reading mAB tags where nested curveType are
// present that are not part of the tag_index.
static struct curveType *read_curveType(struct mem_source *src, uint32_t offset, uint32_t *len)
{
- static const size_t COUNT_TO_LENGTH[5] = {1, 3, 4, 5, 7};
+ static const uint32_t COUNT_TO_LENGTH[5] = {1, 3, 4, 5, 7};
struct curveType *curve = NULL;
uint32_t type = read_u32(src, offset);
uint32_t count;
- int i;
+ uint32_t i;
if (type != CURVE_TYPE && type != PARAMETRIC_CURVE_TYPE) {
invalid_source(src, "unexpected type, expected CURV or PARA");
return NULL;
}
if (type == CURVE_TYPE) {
count = read_u32(src, offset+8);