projects
/
libam7xxx.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0baf1a
)
picoporj: fix another -Wshorten-64-to-32 warning from clang
author
Antonio Ospite <ospite@studenti.unina.it>
Sat, 27 Jul 2013 21:01:16 +0000
(23:01 +0200)
committer
Antonio Ospite <ospite@studenti.unina.it>
Sat, 27 Jul 2013 22:14:47 +0000
(
00:14
+0200)
../examples/picoproj.c:196:8: error: implicit conversion loses integer precision: 'size_t'
(aka 'unsigned long') to 'int' [-Werror,-Wshorten-64-to-32]
ret = fread(image, size, 1, image_fp);
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
examples/picoproj.c
patch
|
blob
|
history
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;
}
- 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");