fixes incorrect reduction of input list

This commit is contained in:
Rasmus Andersson 2019-01-04 15:58:59 -08:00
parent 768f8ec171
commit 49609c8394

View File

@ -242,11 +242,9 @@ def encodeFloat(f):
if c == "E": if c == "E":
c2 = s[:1] c2 = s[:1]
if c2 == "-": if c2 == "-":
s = s[2:] s = s[1:]
c = "E-" c = "E-"
elif c2 == "+": elif c2 == "+":
s = s[2:]
else:
s = s[1:] s = s[1:]
nibbles.append(realNibblesDict[c]) nibbles.append(realNibblesDict[c])
nibbles.append(0xf) nibbles.append(0xf)