summaryrefslogtreecommitdiff
path: root/ports/unix/modjni.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/unix/modjni.c')
-rw-r--r--ports/unix/modjni.c2
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")) {