Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
python client: Fix broken int2bin() in htsmsg
  • Loading branch information
ruuk authored and perexg committed May 21, 2015
1 parent 1835e6a commit f658c06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/py/tvh/htsmsg.py
Expand Up @@ -24,7 +24,7 @@

def int2bin ( i ):
return chr(i >> 24 & 0xFF) + chr(i >> 16 & 0xFF)\
+ chr(i >> 16 & 0xFF) + chr(i & 0xFF)
+ chr(i >> 8 & 0xFF) + chr(i & 0xFF)

def bin2int ( d ):
return (ord(d[0]) << 24) + (ord(d[1]) << 16)\
Expand Down

0 comments on commit f658c06

Please sign in to comment.