Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
26fda6dc
Commit
26fda6dc
authored
Jun 14, 2014
by
Paul Sokolovsky
Browse files
objstr: 64-bit issues.
parent
00c904b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/objstr.c
View file @
26fda6dc
...
...
@@ -1446,7 +1446,7 @@ STATIC mp_obj_t str_count(uint n_args, const mp_obj_t *args) {
// 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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment