fixed buglet in num2binary()
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@72 4cde692c-a291-49d1-8350-778aa11640f8
This commit is contained in:
parent
dab433233b
commit
de7a3c4aa1
@ -50,6 +50,8 @@ def num2binary(l, bits=32):
|
||||
if not ((i+1) % 8):
|
||||
all.append(bin)
|
||||
bin = ""
|
||||
if bin:
|
||||
all.append(bin)
|
||||
all.reverse()
|
||||
assert l in (0, -1), "number doesn't fit in number of bits"
|
||||
return string.join(all, " ")
|
||||
|
Loading…
x
Reference in New Issue
Block a user