diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-04-19 06:32:17 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-04-19 06:32:17 -0700 |
commit | dd15f9af726b56462fcf243f72bf4a44a10e6762 (patch) | |
tree | 882c2a51fba67d47c775de8b82ad0d32ea5d1ac8 | |
parent | 264e840b7e10ad7bc28e8649fa841364223e56fa (diff) | |
download | txr-dd15f9af726b56462fcf243f72bf4a44a10e6762.tar.gz txr-dd15f9af726b56462fcf243f72bf4a44a10e6762.tar.bz2 txr-dd15f9af726b56462fcf243f72bf4a44a10e6762.zip |
Fix broken unget_char over string input streams.
* stream.c (string_in_unget_char): Store the updated
position into the stream, rather than the original
value, which does nothing.
-rw-r--r-- | stream.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1568,7 +1568,7 @@ static val string_in_unget_char(val stream, val ch) lit("unget-char: ~s doesn't match the character that was read"), nao); - set(mkloc(s->pos, stream), plus(pos, one)); + set(mkloc(s->pos, stream), pos); return ch; } |