We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e3f204 commit e3de723Copy full SHA for e3de723
py/emitbc.c
@@ -32,6 +32,7 @@
32
#include <assert.h>
33
34
#include "py/mpstate.h"
35
+#include "py/smallint.h"
36
#include "py/emit.h"
37
#include "py/bc0.h"
38
@@ -471,6 +472,7 @@ void mp_emit_bc_load_const_tok(emit_t *emit, mp_token_kind_t tok) {
471
472
}
473
474
void mp_emit_bc_load_const_small_int(emit_t *emit, mp_int_t arg) {
475
+ assert(MP_SMALL_INT_FITS(arg));
476
if (-MP_BC_LOAD_CONST_SMALL_INT_MULTI_EXCESS <= arg
477
&& arg < MP_BC_LOAD_CONST_SMALL_INT_MULTI_NUM - MP_BC_LOAD_CONST_SMALL_INT_MULTI_EXCESS) {
478
emit_write_bytecode_byte(emit, 1,
0 commit comments