diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2016-12-11 14:04:43 +0200 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2016-12-11 14:04:43 +0200 |
commit | f95aca2a808b4b22fcb9c8fc9084bdcb38645600 (patch) | |
tree | e36811bd427fb98ef2a18d63daed6a1f5c501a84 | |
parent | 594e6f11190cea1de1d9b9f6b255753689ba5aeb (diff) |
settle compiler warnings about signed and unsigned comparisons
-rw-r--r-- | src/proc_interrupts.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/proc_interrupts.c b/src/proc_interrupts.c index 72f16a6c7e..fd10044c76 100644 --- a/src/proc_interrupts.c +++ b/src/proc_interrupts.c @@ -23,9 +23,9 @@ struct interrupt { // given a base, get a pointer to each record #define irrindex(base, line, cpus) ((struct interrupt *)&((char *)(base))[line * recordsize(cpus)]) -static inline struct interrupt *get_interrupts_array(int lines, int cpus) { +static inline struct interrupt *get_interrupts_array(uint32_t lines, int cpus) { static struct interrupt *irrs = NULL; - static int allocated = 0; + static uint32_t allocated = 0; if(unlikely(lines != allocated)) { uint32_t l; |