settle compiler warnings about signed and unsigned comparisons
Costa Tsaousis (ktsaou) committed
Dec 11, 2016 at 14:04 UTC
f95aca2a808b4b22fcb9c8fc9084bdcb38645600
1 file changed
+2
-2
src/proc_interrupts.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;