From 513e2f6d4451af89e3cf2d3170ab1aee1166888c Mon Sep 17 00:00:00 2001 From: tholo Date: Sat, 8 Feb 1997 23:23:57 +0000 Subject: [PATCH] Give correct signal information on integer overflow --- sys/arch/i386/i386/trap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arch/i386/i386/trap.c b/sys/arch/i386/i386/trap.c index be405b5e71b..c264eae7404 100644 --- a/sys/arch/i386/i386/trap.c +++ b/sys/arch/i386/i386/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.18 1997/02/04 17:04:37 deraadt Exp $ */ +/* $OpenBSD: trap.c,v 1.19 1997/02/08 23:23:57 tholo Exp $ */ /* $NetBSD: trap.c,v 1.95 1996/05/05 06:50:02 mycroft Exp $ */ #undef DEBUG @@ -338,7 +338,7 @@ trap(frame) trapsignal(p, SIGFPE, type &~ T_USER, FPE_FLTSUB, (caddr_t)rcr2()); goto out; case T_OFLOW|T_USER: - trapsignal(p, SIGFPE, type &~ T_USER, FPE_FLTOVF, (caddr_t)rcr2()); + trapsignal(p, SIGFPE, type &~ T_USER, FPE_INTOVF, (caddr_t)rcr2()); goto out; case T_DIVIDE|T_USER: trapsignal(p, SIGFPE, type &~ T_USER, FPE_INTDIV, (caddr_t)rcr2()); -- 2.20.1