diff --git a/CImg.h b/CImg.h index 60947e0d..c237b210 100644 --- a/CImg.h +++ b/CImg.h @@ -7387,7 +7387,7 @@ namespace cimg_library { **/ inline cimg_int64 fsize(std::FILE *const file) { if (!file) return (cimg_int64)-1; - long pos = std::ftell(file) + const long pos = std::ftell(file); std::fseek(file,0,SEEK_END); const cimg_int64 siz = (cimg_int64)std::ftell(file); std::fseek(file,pos,SEEK_SET);