diff options
author | Damien George <damien.p.george@gmail.com> | 2019-11-30 23:03:09 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-12-12 20:15:28 +1100 |
commit | abc642973db46fbce7494d34ea0ef2539b339be0 (patch) | |
tree | fbf026f0dc669ec38a0c447eb1de1cbfb6820e28 /tools/mpy_ld.py | |
parent | ff58961944f4f2380e9610a4d18c53c08f68060e (diff) |
py/dynruntime: Add support for float API to make/get floats.
We don't want to add a feature flag to .mpy files that indicate float
support because it will get complex and difficult to use. Instead the .mpy
is built using whatever precision it chooses (float or double) and the
native glue API will convert between this choice and what the host runtime
actually uses.
Diffstat (limited to 'tools/mpy_ld.py')
-rwxr-xr-x | tools/mpy_ld.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/mpy_ld.py b/tools/mpy_ld.py index 07105caac..ec600f967 100755 --- a/tools/mpy_ld.py +++ b/tools/mpy_ld.py @@ -663,7 +663,7 @@ def link_objects(env, native_qstr_vals_len, native_qstr_objs_len): # Resolve unknown symbols mp_fun_table_sec = Section('.external.mp_fun_table', b'', 0) - fun_table = {key: 63 + idx + fun_table = {key: 67 + idx for idx, key in enumerate([ 'mp_type_type', 'mp_type_str', |