From 13772a8a2120017981d280bfe120fdbb74f27860 Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Tue, 19 May 2020 16:37:23 -0700 Subject: fix: many bug fixes to number parsing --- sys/libn/bufio.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'sys/libn/bufio.c') diff --git a/sys/libn/bufio.c b/sys/libn/bufio.c index cde56b7..9bca46a 100644 --- a/sys/libn/bufio.c +++ b/sys/libn/bufio.c @@ -75,7 +75,6 @@ getbyte: error bufio·ungetbyte(io·Buffer *buf, byte c) { - buf->state &= ~bufio·end; if (!(buf->state & bufio·rdr)) { errorf("attempted to unget on non-active reader"); return bufio·err; @@ -135,7 +134,6 @@ nextbyte: error bufio·ungetrune(io·Buffer *buf, rune r) { - buf->state ^= bufio·end; if (buf->state & bufio·rdr) { errorf("attempted to unget on non-active reader"); return bufio·err; -- cgit v1.2.1