Thread
:
Problem with negitive numbers
View Single Post
#
3
02-02-2008, 15:49
dcbrown
Registered User
AKA: Bud
no team
Team Role: Mentor
Join Date: Jan 2005
Rookie Year: 2005
Location: Hollis,NH
Posts: 236
Re: Problem with negitive numbers
Sounds like arithmatic wrap/overflow in a byte value. Check all the variable sizes. The compiler will choose to keep arithmetic in byte value instead of promoting to integer like ansi standard.
dcbrown
View Public Profile
Find all posts by dcbrown
Find CD-Media Photos by dcbrown
Find CD-Media Papers by dcbrown