diff options
| author | David Yang <mmyangfl@gmail.com> | 2021-01-04 23:22:08 +0800 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2022-08-11 14:09:16 +1000 |
| commit | b6651a7a89a666ca76cdc03e065e339dbf3b9298 (patch) | |
| tree | f6f0341eaacc99fb220e49a8ec21c113516d4de3 /ports/unix/modjni.c | |
| parent | 9c6fd974f769ef1e907c1a41f4a5d9b1c1774df7 (diff) | |
unix/modjni: Add missing const qualifier.
Diffstat (limited to 'ports/unix/modjni.c')
| -rw-r--r-- | ports/unix/modjni.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/unix/modjni.c b/ports/unix/modjni.c index c86f30653..6fa00731f 100644 --- a/ports/unix/modjni.c +++ b/ports/unix/modjni.c @@ -376,7 +376,7 @@ STATIC const char *strprev(const char *s, char c) { STATIC bool py2jvalue(const char **jtypesig, mp_obj_t arg, jvalue *out) { const char *arg_type = *jtypesig; - mp_obj_type_t *type = mp_obj_get_type(arg); + const mp_obj_type_t *type = mp_obj_get_type(arg); if (type == &mp_type_str) { if (IMATCH(arg_type, "java.lang.String") || IMATCH(arg_type, "java.lang.Object")) { |
