diff options
| author | Graydon Hoare <[email protected]> | 2010-12-08 14:50:47 -0800 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-12-08 14:50:47 -0800 |
| commit | 68af077e8192a6a1b18778b97449ad695a4ecffb (patch) | |
| tree | d5a7bb274b328239429bdb0c40cf1675f01c3d1a /src/comp/front/lexer.rs | |
| parent | Fix missing case in resolve, un-XFAIL rec-tup.rs. (diff) | |
| download | rust-68af077e8192a6a1b18778b97449ad695a4ecffb.tar.xz rust-68af077e8192a6a1b18778b97449ad695a4ecffb.zip | |
Implement binop= forms. Un-XFAIL bitwise.rs.
Diffstat (limited to 'src/comp/front/lexer.rs')
| -rw-r--r-- | src/comp/front/lexer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/front/lexer.rs b/src/comp/front/lexer.rs index 0506ce6c..42a5e610 100644 --- a/src/comp/front/lexer.rs +++ b/src/comp/front/lexer.rs @@ -426,7 +426,7 @@ impure fn next_token(reader rdr) -> token.token { impure fn binop(reader rdr, token.binop op) -> token.token { rdr.bump(); - if (rdr.next() == '=') { + if (rdr.curr() == '=') { rdr.bump(); ret token.BINOPEQ(op); } else { |