Skip to content

Commit

Permalink
Merge pull request #129 from inhabitedtype/bad-check
Browse files Browse the repository at this point in the history
bad-check: remove redundant check that hid a bug
  • Loading branch information
seliopou authored Jan 23, 2018
2 parents 88d5127 + 31bb400 commit 595ec59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/angstrom.ml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ let rec prompt input pos fail succ =
if len < parser_uncommitted_bytes then
failwith "prompt: input shrunk!";
let input = Input.create input ~off ~len ~committed_bytes:parser_committed_bytes in
if len = parser_uncommitted_bytes || pos = Input.length input then
if len = parser_uncommitted_bytes then
match (more : More.t) with
| Complete -> fail input pos More.Complete
| Incomplete -> prompt input pos fail succ
Expand Down

0 comments on commit 595ec59

Please sign in to comment.