Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix minor warning for clang (return false instead of null pointer)

  • Loading branch information...
commit 9e7d5104f5b95731bd017f19a101fdf5ddfc1fe0 1 parent 6b3b43b
Christopher Kulla authored January 17, 2012

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  src/lib/io/PRT.cpp
4  src/lib/io/PRT.cpp
@@ -217,7 +217,7 @@ ParticlesDataMutable* readPRT(const char* filename,const bool headersOnly)
217 217
     z.zalloc = Z_NULL;z.zfree = Z_NULL;z.opaque = Z_NULL;
218 218
     if (inflateInit( &z ) != Z_OK) {
219 219
         std::cerr<<"Zlib inflateInit error"<<std::endl;
220  
-        return false;
  220
+        return 0;
221 221
     }
222 222
 
223 223
     char in_buf[OUT_BUFSIZE];
@@ -326,7 +326,7 @@ ParticlesDataMutable* readPRT(const char* filename,const bool headersOnly)
326 326
 	}
327 327
     if (inflateEnd( &z ) != Z_OK) {
328 328
         std::cerr<<"Zlib inflateEnd error"<<std::endl;
329  
-        return false;
  329
+        return 0;
330 330
     }
331 331
 
332 332
     // success

1 note on commit 9e7d510

Andrew Selle

Thanks! I should start compiling with clang I guess! I would like to get an autobuild and a autotest, but I haven't had a chance!

Please sign in to comment.
Something went wrong with that request. Please try again.