Content-Length: 264830 | pFad | http://github.com/micropython/micropython/commit/9ee2ef5108102ce2f5851fba06da3dcab585f501

65 py/emitinlinerv32: Move include of asmrv32.h to within feature guard. · micropython/micropython@9ee2ef5 · GitHub
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 <damien@micropython.org>
1 parent 0b3ad98 commit 9ee2ef5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

py/emitinlinerv32.c

+2-1
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/micropython/micropython/commit/9ee2ef5108102ce2f5851fba06da3dcab585f501

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy