diff options
author | Damien George <damien.p.george@gmail.com> | 2014-01-23 18:27:51 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-01-23 18:27:51 +0000 |
commit | 1e708fed188e3471cc7bed13635ba69b48bc8cf7 (patch) | |
tree | a8322082bbcf08272ae039843de237f0bf427134 /py/objstr.c | |
parent | b051e7d167ac00576e45a6a1de291b8ff6bcd6a3 (diff) | |
download | micropython-1e708fed188e3471cc7bed13635ba69b48bc8cf7.tar.gz micropython-1e708fed188e3471cc7bed13635ba69b48bc8cf7.zip |
py: Implement bool unary op; tidy up unary op dispatch.
Diffstat (limited to 'py/objstr.c')
-rw-r--r-- | py/objstr.c | 2 |
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; } } |