py/emitinlinerv32: Move include of asmrv32.h to within feature guard.

Otherwise, when compiling on 16-bit systems (where `mp_uint_t` is 16 bits
wide) the compiler warns about "left shift count >= width of type", from
the static inline functions that have RV32_ENCODE_TYPE_xxx macros which
do a lot of bit shifting.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George 2025-04-10 15:35:39 +10:00
parent 0b3ad98ea9
commit 9ee2ef5108

View file

@ -30,12 +30,13 @@
#include <stdio.h>
#include <string.h>
#include "py/asmrv32.h"
#include "py/emit.h"
#include "py/misc.h"
#if MICROPY_EMIT_INLINE_RV32
#include "py/asmrv32.h"
typedef enum {
// define rules with a compile function
#define DEF_RULE(rule, comp, kind, ...) PN_##rule,