summaryrefslogtreecommitdiff
path: root/src/arch/i386/lib/exception.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/i386/lib/exception.c')
-rw-r--r--src/arch/i386/lib/exception.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/i386/lib/exception.c b/src/arch/i386/lib/exception.c
index 5f0c4e0563..2d68b918ed 100644
--- a/src/arch/i386/lib/exception.c
+++ b/src/arch/i386/lib/exception.c
@@ -377,7 +377,7 @@ void x86_exception(struct eregs *info)
gdb_stub_registers[CS] = info->cs;
gdb_stub_registers[PS] = info->eflags;
signo = GDB_UNKNOWN;
- if (info->vector < sizeof(exception_to_signal)/sizeof(exception_to_signal[0])) {
+ if (info->vector < ARRAY_SIZE(exception_to_signal)) {
signo = exception_to_signal[info->vector];
}