summaryrefslogtreecommitdiff
path: root/examples/embedding/hello-embed.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/embedding/hello-embed.c')
-rw-r--r--examples/embedding/hello-embed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/embedding/hello-embed.c b/examples/embedding/hello-embed.c
index 2000b703c..9a90288cf 100644
--- a/examples/embedding/hello-embed.c
+++ b/examples/embedding/hello-embed.c
@@ -53,7 +53,7 @@ mp_obj_t execute_from_str(const char *str) {
int main() {
// Initialized stack limit
- mp_stack_set_limit(40000 * (BYTES_PER_WORD / 4));
+ mp_stack_set_limit(40000 * (sizeof(void *) / 4));
// Initialize heap
gc_init(heap, heap + sizeof(heap));
// Initialize interpreter