../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);
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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");