Skip to content
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.

Commit

Permalink
Merge pull request #162 from jparise/read_i08-bool
Browse files Browse the repository at this point in the history
Simplify the read_i08() bool result cast.
  • Loading branch information
lxyu committed Oct 12, 2015
2 parents ddeeb36 + 844cf29 commit 981ec6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thriftpy/protocol/cybin/cybin.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ cdef c_read_val(CyTransportBase buf, TType ttype, spec=None):
cdef TType v_type, k_type, orig_type, orig_key_type

if ttype == T_BOOL:
return bool(read_i08(buf))
return <bint>read_i08(buf)

elif ttype == T_I08:
return read_i08(buf)
Expand Down

0 comments on commit 981ec6e

Please sign in to comment.