Skip to content
Snippets Groups Projects
Commit 4d54d452 authored by David Tschumperlé's avatar David Tschumperlé
Browse files

.

parent b5648744
Branches
Tags v.2.3.1
No related merge requests found
...@@ -49315,6 +49315,12 @@ namespace cimg_library_suffixed { ...@@ -49315,6 +49315,12 @@ namespace cimg_library_suffixed {
"load_pfm(): WIDTH and HEIGHT fields are undefined in file '%s'.", "load_pfm(): WIDTH and HEIGHT fields are undefined in file '%s'.",
cimg_instance, cimg_instance,
filename?filename:"(FILE*)"); filename?filename:"(FILE*)");
} else if (W<=0 || H<=0) {
if (!file) cimg::fclose(nfile);
throw CImgIOException(_cimg_instance
"load_pfm(): WIDTH (%d) and HEIGHT (%d) fields are invalid in file '%s'.",
cimg_instance,W,H,
filename?filename:"(FILE*)");
} }
if (err==2) { if (err==2) {
while ((err=std::fscanf(nfile," %16383[^\n]",item.data()))!=EOF && (*item=='#' || !err)) std::fgetc(nfile); while ((err=std::fscanf(nfile," %16383[^\n]",item.data()))!=EOF && (*item=='#' || !err)) std::fgetc(nfile);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment