Skip to content

Commit

Permalink
Com_StringContains: Fix incorrect ptrdiff_t type usage
Browse files Browse the repository at this point in the history
  • Loading branch information
aufau committed Feb 7, 2018
1 parent ec23e96 commit d767e76
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/qcommon/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -583,10 +583,9 @@ Com_StringContains
============
*/
static const char *Com_StringContains(const char *str1, const char *str2, int casesensitive) {
ptrdiff_t len, i;
size_t j;
int len, i, j;

len = strlen(str1) - strlen(str2);
len = Q_strlen(str1) - Q_strlen(str2);
for (i = 0; i <= len; i++, str1++) {
for (j = 0; str2[j]; j++) {
if (casesensitive) {
Expand Down

0 comments on commit d767e76

Please sign in to comment.