Преглед изворни кода

Fix position of parenthesis

Tatsuhiro Tsujikawa пре 12 година
родитељ
комит
b7a3976456
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/GZipFile.cc

+ 1 - 1
src/GZipFile.cc

@@ -57,7 +57,7 @@ GZipFile::GZipFile(const char* filename, const char* mode)
   open_  = fp;
   if (open_) {
     int fd = dup(fileno(fp));
-    if ((open_ = fd) >= 0) {
+    if ((open_ = (fd >= 0))) {
       open_ = (fp_ = gzdopen(fd, mode));
       if (!open_) {
         ::close(fd);