aboutsummaryrefslogtreecommitdiff
path: root/hw/sh_intc.h
diff options
context:
space:
mode:
Diffstat (limited to 'hw/sh_intc.h')
-rw-r--r--hw/sh_intc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/sh_intc.h b/hw/sh_intc.h
index 4e36f007d..a9750ae9b 100644
--- a/hw/sh_intc.h
+++ b/hw/sh_intc.h
@@ -32,7 +32,7 @@ struct intc_prio_reg {
unsigned long value;
};
-#define _INTC_ARRAY(a) a, sizeof(a)/sizeof(*a)
+#define _INTC_ARRAY(a) a, ARRAY_SIZE(a)
struct intc_source {
unsigned short vect;