Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!bsu-cs!dhesi From: dhesi@bsu-cs.bsu.edu (Rahul Dhesi) Newsgroups: comp.lang.c Subject: Re: checking for overflow in C Message-ID: <7152@bsu-cs.bsu.edu> Date: 9 May 89 18:00:29 GMT References: <13367@dartvax.Dartmouth.EDU> <10218@smoke.BRL.MIL> <436@cbnewsm.ATT.COM> <10243@smoke.BRL.MIL> Reply-To: dhesi@bsu-cs.bsu.edu (Rahul Dhesi) Organization: CS Dept, Ball St U, Muncie, Indiana Lines: 7 Just a reminder to all of you: "Overflow" simply does not exist in unsigned arithmetic. When you add two unsigned values and the result is too big to fit, what happens is a "carry", not an overflow. Overflow occurs only in signed arithmetic. -- Rahul Dhesi UUCP: ...!{iuvax,pur-ee}!bsu-cs!dhesi