浏览代码

Remove stupid syntax

Bryan Drewery 6 年之前
父节点
当前提交
29cd73ee8c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/log.cc

+ 1 - 1
src/log.cc

@@ -330,7 +330,7 @@ void putlog(int type, const char *chname, const char *format, ...)
 
   if ((!backgrd) && (!term_z)) {
     dprintf(DP_STDOUT, "%s\n", out);
-  } else if ((type & LOG_ERRORS || type & LOG_MISC) && use_stderr) {
+  } else if ((type & (LOG_ERRORS|LOG_MISC)) && use_stderr) {
     dprintf(DP_STDERR, "%s\n", va_out);
   }
 }