Fix format string type mismatch in src/capability.c.
The type 'long' was correct on most machines but not according to the C standard and Windows 64-bit.
This commit is contained in:
parent
e3cb855407
commit
0c5e50f430
1 changed files with 2 additions and 2 deletions
|
@ -247,8 +247,8 @@ capability_index_stats(void (*cb)(const char *line, void *privdata), void *privd
|
||||||
cb(buf, privdata);
|
cb(buf, privdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
rb_snprintf(buf, sizeof buf, "'%s': remaining bits - %ld", idx->name,
|
rb_snprintf(buf, sizeof buf, "'%s': remaining bits - %u", idx->name,
|
||||||
(sizeof(unsigned int) * 8) - (idx->highest_bit - 1));
|
(unsigned int)((sizeof(unsigned int) * 8) - (idx->highest_bit - 1)));
|
||||||
cb(buf, privdata);
|
cb(buf, privdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue