Skip to content

Commit d767e76

Browse files
committed
Com_StringContains: Fix incorrect ptrdiff_t type usage
1 parent ec23e96 commit d767e76

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/qcommon/common.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -583,10 +583,9 @@ Com_StringContains
583583
============
584584
*/
585585
static const char *Com_StringContains(const char *str1, const char *str2, int casesensitive) {
586-
ptrdiff_t len, i;
587-
size_t j;
586+
int len, i, j;
588587

589-
len = strlen(str1) - strlen(str2);
588+
len = Q_strlen(str1) - Q_strlen(str2);
590589
for (i = 0; i <= len; i++, str1++) {
591590
for (j = 0; str2[j]; j++) {
592591
if (casesensitive) {

0 commit comments

Comments
 (0)