aboutsummaryrefslogtreecommitdiff
path: root/windows/mpconfigport.h
diff options
context:
space:
mode:
authorDamien George2014-08-24 16:28:17 +0100
committerDamien George2014-08-24 16:28:17 +0100
commit3c658a4e755a75e495303957208486e583ddb270 (patch)
tree6418fea9bf3dcf4aed2145db94fda4c0de1d0321 /windows/mpconfigport.h
parent25fc41dd316c38df3e2a6cfe4b53322d76dc92fc (diff)
py: Fix bug where GC collected native/viper/asm function data.
Because (for Thumb) a function pointer has the LSB set, pointers to dynamic functions in RAM (eg native, viper or asm functions) were not being traced by the GC. This patch is a comprehensive fix for this. Addresses issue #820.
Diffstat (limited to 'windows/mpconfigport.h')
-rw-r--r--windows/mpconfigport.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/windows/mpconfigport.h b/windows/mpconfigport.h
index 13ba58be1..c5def7592 100644
--- a/windows/mpconfigport.h
+++ b/windows/mpconfigport.h
@@ -82,7 +82,7 @@ typedef unsigned int mp_uint_t; // must be pointer size
typedef void *machine_ptr_t; // must be of pointer size
typedef const void *machine_const_ptr_t; // must be of pointer size
-extern const struct _mp_obj_fun_native_t mp_builtin_open_obj;
+extern const struct _mp_obj_fun_builtin_t mp_builtin_open_obj;
#define MICROPY_PORT_BUILTINS \
{ MP_OBJ_NEW_QSTR(MP_QSTR_open), (mp_obj_t)&mp_builtin_open_obj },