FLIF-hub / FLIF

Free Lossless Image Format
Other
3.72k stars 229 forks source link

Format specifier is incorrect #535

Open yurivict opened 5 years ago

yurivict commented 5 years ago

clang-8 complains:

viewflif.c:168:94: warning: format specifies type 'long' but the argument has type 'long long' [-Wformat]
    sprintf(title,"FLIF image decoded at %ux%u [read %" PRId64 " bytes, quality=%.2f%%]",w,h,(long long int) bytes_read, 0.01*quality);
                                                     ~~~~~~~~~                               ^~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.