فهرست منبع

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);