Skip to content

Commit 9ee2ef5

Browse files
committed
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 <[email protected]>
1 parent 0b3ad98 commit 9ee2ef5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

py/emitinlinerv32.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,13 @@
3030
#include <stdio.h>
3131
#include <string.h>
3232

33-
#include "py/asmrv32.h"
3433
#include "py/emit.h"
3534
#include "py/misc.h"
3635

3736
#if MICROPY_EMIT_INLINE_RV32
3837

38+
#include "py/asmrv32.h"
39+
3940
typedef enum {
4041
// define rules with a compile function
4142
#define DEF_RULE(rule, comp, kind, ...) PN_##rule,

0 commit comments

Comments
 (0)