diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-01-13 21:56:23 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-01-13 21:56:23 -0800 |
commit | e7dd81f7280612a65b7a466e6d870b808272b34f (patch) | |
tree | 877734af0f15cb64bbf4033c12d9f4aa298e6286 /stream.c | |
parent | d198142b137ed30cb8a70abf2cd0c36600e1ddd8 (diff) | |
download | txr-e7dd81f7280612a65b7a466e6d870b808272b34f.tar.gz txr-e7dd81f7280612a65b7a466e6d870b808272b34f.tar.bz2 txr-e7dd81f7280612a65b7a466e6d870b808272b34f.zip |
* stream.c (put_byte): Bugfix: was checking whether the put_char
virtual function is not null, rather than put_byte.
Diffstat (limited to 'stream.c')
-rw-r--r-- | stream.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1777,7 +1777,7 @@ val put_byte(val byte, val stream) { struct strm_ops *ops = (struct strm_ops *) stream->co.ops; - return ops->put_char ? ops->put_byte(stream, b) : nil; + return ops->put_byte ? ops->put_byte(stream, b) : nil; } } |