commit | 26fda6dc8ef77e1acdc3529360a6d1cef23608e4 | [log] [tgz] |
---|---|---|
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | Sat Jun 14 18:19:16 2014 +0300 |
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | Fri Jun 27 00:04:19 2014 +0300 |
tree | 1d7c75af8e5d30231093230b8f91af9165e3356f | |
parent | 00c904b47a4cac2cdf276346039f470f59c90c04 [diff] [blame] |
objstr: 64-bit issues.
diff --git a/py/objstr.c b/py/objstr.c index c732719..714a170 100644 --- a/py/objstr.c +++ b/py/objstr.c
@@ -1446,7 +1446,7 @@ // if needle_len is zero then we count each gap between characters as an occurrence if (needle_len == 0) { - return MP_OBJ_NEW_SMALL_INT(unichar_charlen((const char*)start, end - start) + 1); + return MP_OBJ_NEW_SMALL_INT((machine_uint_t)unichar_charlen((const char*)start, end - start) + 1); } // count the occurrences