summaryrefslogtreecommitdiffstatshomepage
path: root/py/emitbc.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-01-11 09:33:39 +0000
committerDamien George <damien.p.george@gmail.com>2014-01-11 09:33:39 +0000
commit25042b19d2310260e22d54ba09a124d5aaf4f512 (patch)
treee4cfe74a09ef2ddcaefaecaaf420565ed726ad4a /py/emitbc.c
parentad97f2a49ea723cf21f828c99e0075ff1fd0680a (diff)
downloadmicropython-25042b19d2310260e22d54ba09a124d5aaf4f512.tar.gz
micropython-25042b19d2310260e22d54ba09a124d5aaf4f512.zip
py: Make arg to MP_BC_RAISE_VARARGS a byte.
Diffstat (limited to 'py/emitbc.c')
-rw-r--r--py/emitbc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/emitbc.c b/py/emitbc.c
index c0ec2469a6..a00dfd0d96 100644
--- a/py/emitbc.c
+++ b/py/emitbc.c
@@ -672,9 +672,9 @@ static void emit_bc_return_value(emit_t *emit) {
}
static void emit_bc_raise_varargs(emit_t *emit, int n_args) {
- assert(n_args >= 0);
+ assert(0 <= n_args && n_args <= 2);
emit_pre(emit, -n_args);
- emit_write_byte_1_uint(emit, MP_BC_RAISE_VARARGS, n_args);
+ emit_write_byte_1_byte(emit, MP_BC_RAISE_VARARGS, n_args);
}
static void emit_bc_yield_value(emit_t *emit) {