Silence 'loss of data' warnings in symbol.c.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-01-25 23:27:32 +09:00
parent c68258f454
commit 165f79c877
+1 -1
View File
@@ -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;