Skip to content

Commit

Permalink
Correct bool range assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanGoulder committed Apr 29, 2020
1 parent ca4305c commit 0082760
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def parse_uint64(self, x, type):
return fg3(str(x))

def parse_bool(self, x, type):
assert(0 <= x < (1 << 2))
assert(0 <= x < (1 << 1))
return fg3(str(bool(x)))

def parse_string(self, file, type):
Expand Down

0 comments on commit 0082760

Please sign in to comment.