diff options
author | Sergey Avseyev <sergey.avseyev@gmail.com> | 2015-05-26 00:29:58 +0300 |
---|---|---|
committer | Sergey Avseyev <sergey.avseyev@gmail.com> | 2015-05-26 00:29:58 +0300 |
commit | 116347674c90873366f09c6464ec2c0f22f19b82 (patch) | |
tree | 271022cdb18c706fc263a755f7a15f4b6ebbec7c /tinyc/lib/bcheck.c | |
parent | f51643428359a12185b981e57117d7e8ecf2a776 (diff) | |
download | Nim-116347674c90873366f09c6464ec2c0f22f19b82.tar.gz |
Fix peekLine() for streams
Motivation ---------- peekLine procs use defer to reset position in the stream, but it also make them always return nil. Modification ------------ Explicitly set result value in peekLine, and write missing unit test. Result ------ Tests are green and bug is fixed
Diffstat (limited to 'tinyc/lib/bcheck.c')
0 files changed, 0 insertions, 0 deletions