0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-07-07 11:08:34 +02:00

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:
Jilles Tjoelker 2014-03-09 19:11:54 +01:00
parent e3cb855407
commit 0c5e50f430

View file

@ -247,8 +247,8 @@ capability_index_stats(void (*cb)(const char *line, void *privdata), void *privd
cb(buf, privdata);
}
rb_snprintf(buf, sizeof buf, "'%s': remaining bits - %ld", idx->name,
(sizeof(unsigned int) * 8) - (idx->highest_bit - 1));
rb_snprintf(buf, sizeof buf, "'%s': remaining bits - %u", idx->name,
(unsigned int)((sizeof(unsigned int) * 8) - (idx->highest_bit - 1)));
cb(buf, privdata);
}