Bug 700773. qcms: cleanup up some integer types. r=bgirard
authorJeff Muizelaar <jmuizelaar@mozilla.com>
Tue, 08 Nov 2011 15:43:33 -0500
changeset 80846 b259af61fe3f2777f13565b97d4377851f1979ae
parent 80845 938630505470610b53542221129668df77255f52
child 80847 0e7a9ed58b9649eab9b92a0d4f12cd2b64b2a26a
push idunknown
push userunknown
push dateunknown
reviewersbgirard
bugs700773
milestone10.0a1
Bug 700773. qcms: cleanup up some integer types. r=bgirard This fixes a couple of warnings in clang and makes things more consistent.
gfx/qcms/iccread.c
--- 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);