]> jfr.im git - solanum.git/blobdiff - src/capability.c
update NEWS
[solanum.git] / src / capability.c
index 7ffb3d87de87d82fda87dea128f280996762ffc5..daf72657bdb98e8556d04784f0c4af27fbc38390 100644 (file)
@@ -21,6 +21,7 @@
 #include "stdinc.h"
 #include "capability.h"
 #include "irc_dictionary.h"
+#include "s_assert.h"
 
 static rb_dlink_list capability_indexes = { NULL, NULL, 0 };
 
@@ -246,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);
        }