diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-14 08:54:21 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-14 08:54:21 +0000 |
commit | 1f433219918829a6f0afc0f926fc46ea01e3156a (patch) | |
tree | cef20281cfd60a4fb8564ac3a144fdebc437610d /util.c | |
parent | e368a2e15833892697889a55a873fd3431072a74 (diff) | |
download | ruby-1f433219918829a6f0afc0f926fc46ea01e3156a.tar.gz |
* util.c (ruby_each_words): assume no string exceeds INT_MAX.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3816,7 +3816,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); } } |