Made code -Wshadow clean, missed a bunch of issues in the last commit
[supertux.git] / src / physfs / ofile_streambuf.cpp
index c496b62..6b862b7 100644 (file)
@@ -53,8 +53,8 @@ OFileStreambuf::overflow(int c)
     return traits_type::eof();
 
   if(c != traits_type::eof()) {
-    PHYSFS_sint64 res = PHYSFS_write(file, &c2, 1, 1);
-    if(res <= 0)
+    PHYSFS_sint64 res_ = PHYSFS_write(file, &c2, 1, 1);
+    if(res_ <= 0)
       return traits_type::eof();
   }