@cryptotaxi247 / netdata-1 / commits / b68fe499d

settle compiler warnings about signed and unsigned comparisons

Costa Tsaousis (ktsaou) committed Dec 11, 2016 at 14:06 UTC b68fe499dd476b1f97dd1400a768d58985a9cd6f
1 file changed +2 -2
src/proc_softirqs.c
+2 -2
@@ -23,9 +23,9 @@ struct interrupt {
23 // given a base, get a pointer to each record
24 #define irrindex(base, line, cpus) ((struct interrupt *)&((char *)(base))[line * recordsize(cpus)])
25
26 -static inline struct interrupt *get_interrupts_array(int lines, int cpus) {
26 +static inline struct interrupt *get_interrupts_array(uint32_t lines, int cpus) {
27 static struct interrupt *irrs = NULL;
28 - static int allocated = 0;
28 + static uint32_t allocated = 0;
29
30 if(unlikely(lines != allocated)) {
31 uint32_t l;