Skip to content

Commit 28b0c06

Browse files
committed
Add missing const qualifier
1 parent 08f7d98 commit 28b0c06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cstring.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ static PyObject *cstring_count(PyObject *self, PyObject *args) {
241241
if(!_parse_substr_args(self, args, &params))
242242
return NULL;
243243

244-
char *p = params.start;
244+
const char *p = params.start;
245245
long result = 0;
246246
while((p = strstr(p, params.substr)) != NULL) {
247247
++result;

0 commit comments

Comments
 (0)