summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-01-25 23:27:32 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-01-25 23:27:32 +0900
commit165f79c877901db790070b97250633c5c92bcfe7 (patch)
tree9cc9d13328b663284f1cb5f99665d6b131e570b5 /src
parentc68258f454cc27135a72e4b6a3f77f95c7bb3ed5 (diff)
downloadmruby-165f79c877901db790070b97250633c5c92bcfe7.tar.gz
mruby-165f79c877901db790070b97250633c5c92bcfe7.zip
Silence 'loss of data' warnings in `symbol.c`.
Diffstat (limited to 'src')
-rw-r--r--src/symbol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/symbol.c b/src/symbol.c
index 773e980e5..29d8a491b 100644
--- a/src/symbol.c
+++ b/src/symbol.c
@@ -34,7 +34,7 @@ presym_find(const char *name, size_t len)
int cmp;
for (start = 0; presym_size != 0; presym_size/=2) {
idx = start+presym_size/2;
- cmp = len-presym_table[idx].len;
+ cmp = (int)(len-presym_table[idx].len);
if (cmp == 0) {
cmp = memcmp(name, presym_table[idx].name, len);
if (cmp == 0) return idx+1;