Permalink
Browse files

Avoid Xcode warnings

  • Loading branch information...
andrewschaaf committed Feb 1, 2014
1 parent 0ff744d commit c19124d4e7ae9e465e1b2d1d946c1301e23b792a
Showing with 3 additions and 3 deletions.
  1. +3 −3 RSImg.c
View
@@ -24,11 +24,11 @@ int RSImgFreadPPMP6Header(FILE *file, uint32_t *width, uint32_t *height, uint32_
const int lineSize = 200;
char line[lineSize];
fgets(line, lineSize, file);
- *headerSize = 3 + strlen(line) + 4;
+ *headerSize = 3 + (uint32_t)strlen(line) + 4;
char *tok = strtok(line, " ");
- *width = atol(tok);
+ *width = (uint32_t)atol(tok);
tok = strtok(NULL, " ");
- *height = atol(tok);
+ *height = (uint32_t)atol(tok);
// "255\n"
char actualSuffix[suffixSize];

0 comments on commit c19124d

Please sign in to comment.