summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2019-07-13 13:13:21 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2019-07-13 13:13:21 +0900
commit9741df100bb84a858725dba58705a908e5bdca4c (patch)
tree6b4ad759ab3c16e74755e275d8aa719b54e9626e /src
parent6b1cc6e2fe4eab30e265d8209a208e0bf942c54d (diff)
downloadmruby-9741df100bb84a858725dba58705a908e5bdca4c.tar.gz
mruby-9741df100bb84a858725dba58705a908e5bdca4c.zip
Change type of a variable for signedness mismatch; ref #4573
Diffstat (limited to 'src')
-rw-r--r--src/string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string.c b/src/string.c
index 056348921..a6aa9d906 100644
--- a/src/string.c
+++ b/src/string.c
@@ -313,7 +313,7 @@ str_index_str_by_char_search(mrb_state *mrb, const char *p, const char *pend, co
/* Preprocessing */
{
- size_t i;
+ mrb_int i;
for (i = 0; i < 1 << CHAR_BIT; i ++) {
qstable[i] = slen;