summaryrefslogtreecommitdiffstats
path: root/stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream.c')
-rw-r--r--stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream.c b/stream.c
index 8abff6cb..14b50f15 100644
--- a/stream.c
+++ b/stream.c
@@ -1317,7 +1317,7 @@ static val format_mode(const struct stdio_mode m)
*ptr++ = 'b';
#ifdef __CYGWIN__
- if (!m.binary && (!opt_compat || opt_compat > 143))
+ if (!m.binary && (opt_compat == 144 || opt_compat == 145))
*ptr++ = 't';
#endif