projects
/
libam7xxx.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
HACKING.asciidoc: add an example of testing am7xxx-play with valgrind
[libam7xxx.git]
/
examples
/
picoproj.c
diff --git
a/examples/picoproj.c
b/examples/picoproj.c
index
b5ce593
..
e1dc47a
100644
(file)
--- a/
examples/picoproj.c
+++ b/
examples/picoproj.c
@@
-193,7
+193,7
@@
int main(int argc, char *argv[])
goto out_close_image_fp;
}
goto out_close_image_fp;
}
- ret = fread(image, size, 1, image_fp);
+ ret =
(int)
fread(image, size, 1, image_fp);
if (ret != 1) {
if (feof(image_fp))
fprintf(stderr, "Unexpected end of file.\n");
if (ret != 1) {
if (feof(image_fp))
fprintf(stderr, "Unexpected end of file.\n");