aboutsummaryrefslogtreecommitdiff
path: root/py/persistentcode.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-10-07 11:56:24 +1100
committerDamien George <damien.p.george@gmail.com>2019-12-12 20:15:28 +1100
commit360d972c16dd818462be7699badb6478639924c1 (patch)
tree205c5021c69ce41b4b3b8b5101bcd9975709824c /py/persistentcode.c
parentb47e155bd07e5765b804c404411825b15378c0b6 (diff)
py/nativeglue: Add new header file with native function table typedef.
Diffstat (limited to 'py/persistentcode.c')
-rw-r--r--py/persistentcode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/persistentcode.c b/py/persistentcode.c
index 353fa268e..1e3b5368b 100644
--- a/py/persistentcode.c
+++ b/py/persistentcode.c
@@ -30,7 +30,7 @@
#include <assert.h>
#include "py/reader.h"
-#include "py/emitglue.h"
+#include "py/nativeglue.h"
#include "py/persistentcode.h"
#include "py/bc0.h"
#include "py/objstr.h"
@@ -453,7 +453,7 @@ STATIC mp_raw_code_t *load_raw_code(mp_reader_t *reader, qstr_window_t *qw) {
#if MICROPY_EMIT_MACHINE_CODE
if (kind != MP_CODE_BYTECODE) {
// Populate mp_fun_table entry
- *ct++ = (mp_uint_t)(uintptr_t)mp_fun_table;
+ *ct++ = (mp_uint_t)(uintptr_t)&mp_fun_table;
}
#endif