summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2013-12-02 19:25:21 -0800
committerKaz Kylheku <kaz@kylheku.com>2013-12-02 19:25:21 -0800
commitb00d0ecc4bb4e881f675af2cead432ae99e98180 (patch)
tree9bec77756322d4f5887418a8d7c24a80363cc8a7
parent4c6209c7cceac38a0ce852d3d0990a6f098be87a (diff)
downloadtxr-b00d0ecc4bb4e881f675af2cead432ae99e98180.tar.gz
txr-b00d0ecc4bb4e881f675af2cead432ae99e98180.tar.bz2
txr-b00d0ecc4bb4e881f675af2cead432ae99e98180.zip
* stream.c (stdio_set_prop): Fix reversed boolean.
-rw-r--r--ChangeLog4
-rw-r--r--stream.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ed2b531b..abf7667c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2013-12-02 Kaz Kylheku <kaz@kylheku.com>
+ * stream.c (stdio_set_prop): Fix reversed boolean.
+
+2013-12-02 Kaz Kylheku <kaz@kylheku.com>
+
* stream.c (tail_strategy): Execute the strategy code also
in the case that the stream's FILE * handle is null. This handles
opening the file for the first time.
diff --git a/stream.c b/stream.c
index b401c911..549ad244 100644
--- a/stream.c
+++ b/stream.c
@@ -241,7 +241,7 @@ static val stdio_set_prop(val stream, val ind, val prop)
{
if (ind == real_time_k) {
struct stdio_handle *h = (struct stdio_handle *) stream->co.handle;
- h->is_real_time = prop ? 0 : 1;
+ h->is_real_time = prop ? 1 : 0;
return t;
}
return nil;