Skip to content

Commit 07e6549

Browse files
Update str_ops.py
1 parent 5189238 commit 07e6549

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mypyc/primitives/str_ops.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,10 @@
284284
return_type=c_pyssize_t_rprimitive,
285285
c_function_name="CPyStr_Count",
286286
error_kind=ERR_MAGIC,
287-
extra_int_constants=[(0, c_int_rprimitive)],
287+
extra_int_constants=[(0, c_pyssize_t_rprimitive)],
288288
)
289289

290-
# str.count(unicode, substring, start)
290+
# str.count(substring, start)
291291
method_op(
292292
name="count",
293293
arg_types=[str_rprimitive, str_rprimitive, int_rprimitive],

0 commit comments

Comments
 (0)