diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-12-18 20:05:24 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-12-18 20:05:24 -0800 |
commit | 50e852a5c180808609b254cdf20694d36aefd909 (patch) | |
tree | 7677c646dc7e1eb6ec817ef8665afd4e276013d0 /emscripten.py | |
parent | 879206cdd5cd1896674e279112c3d3271c439d21 (diff) |
fix dot zero correction after < or >
Diffstat (limited to 'emscripten.py')
-rwxr-xr-x | emscripten.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/emscripten.py b/emscripten.py index 111c2df4..c67a2cda 100755 --- a/emscripten.py +++ b/emscripten.py @@ -825,7 +825,7 @@ def emscript_fast(infile, settings, outfile, libraries=[], compiler_engine=None, else: num = num[:e] + '.0' + num[e:] return m.group(1) + m.group(2) + num - funcs = re.sub(r'([(=,+\-*/%] *)\+(-?)((0x)?[0-9a-f]*\.?[0-9]+([eE][-+]?[0-9]+)?)', lambda m: fix_dot_zero(m), funcs) + funcs = re.sub(r'([(=,+\-*/%<>] *)\+(-?)((0x)?[0-9a-f]*\.?[0-9]+([eE][-+]?[0-9]+)?)', lambda m: fix_dot_zero(m), funcs) # js compiler |