summaryrefslogtreecommitdiffstatshomepage
path: root/py/objstr.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/objstr.c')
-rw-r--r--py/objstr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objstr.c b/py/objstr.c
index 337b42e70e..82e97c0aff 100644
--- a/py/objstr.c
+++ b/py/objstr.c
@@ -447,7 +447,7 @@ bool mp_obj_str_equal(mp_obj_t s1, mp_obj_t s2) {
if (l1 != l2) {
return false;
}
- return strncmp((const char*)d1, (const char*)d2, l1) == 0;
+ return memcmp(d1, d2, l1) == 0;
}
}