summaryrefslogtreecommitdiffstatshomepage
path: root/py/vm.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/vm.c')
-rw-r--r--py/vm.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/py/vm.c b/py/vm.c
index 2f5977d825..33970a0f6a 100644
--- a/py/vm.c
+++ b/py/vm.c
@@ -319,6 +319,13 @@ bool py_execute_byte_code_2(const byte *code, const byte **ip_in_out, py_obj_t *
*sp = obj1;
break;
+ case PYBC_SET_ADD:
+ DECODE_UINT;
+ // I think it's guaranteed by the compiler that sp[unum] is a set
+ rt_store_set(sp[unum], sp[0]);
+ sp++;
+ break;
+
case PYBC_MAKE_FUNCTION:
DECODE_UINT;
PUSH(rt_make_function_from_id(unum));