Răsfoiți Sursa

readOFF: quenched a warning

Former-commit-id: 8407132818f74c6086a7d235ed3fb773739d391d
Wenzel Jakob 11 ani în urmă
părinte
comite
027a77cb5c
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      include/igl/readOFF.cpp

+ 1 - 1
include/igl/readOFF.cpp

@@ -29,7 +29,7 @@ IGL_INLINE bool igl::readOFF(
   char header[1000];
   char header[1000];
   const std::string OFF("OFF");
   const std::string OFF("OFF");
   const std::string NOFF("NOFF");
   const std::string NOFF("NOFF");
-  if(!fscanf(off_file,"%s\n",header)==1
+  if(fscanf(off_file,"%s\n",header)!=1
      || !(OFF == header || NOFF == header))
      || !(OFF == header || NOFF == header))
   {
   {
     printf("Error: %s's first line should be OFF or NOFF not %s...",off_file_name.c_str(),header);
     printf("Error: %s's first line should be OFF or NOFF not %s...",off_file_name.c_str(),header);