Skip to content

Commit

Permalink
assume no string exceeds INT_MAX
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 committed Jan 18, 2012
1 parent f4994ef commit 5865256
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util.c
Expand Up @@ -3949,7 +3949,7 @@ ruby_each_words(const char *str, void (*func)(const char*, int, void*), void *ar
if (!*str) break;
end = str;
while (*end && !ISSPACE(*end) && *end != ',') end++;
len = end - str;
len = (int)(end - str); /* assume no string exceeds INT_MAX */
(*func)(str, len, arg);
}
}
Expand Down

0 comments on commit 5865256

Please sign in to comment.