X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Esa A E Peuha Newsgroups: comp.os.msdos.djgpp Subject: Re: assembly code of the "strange error" - program Date: 28 Jul 2004 10:21:21 +0300 Organization: University of Helsinki Lines: 17 Message-ID: <86pk6woegwe.fsf@sirppi.helsinki.fi> References: <20040727070949 DOT 29244 DOT 00000306 AT mb-m19 DOT aol DOT com> <200407271306 DOT i6RD6e8o010681 AT envy DOT delorie DOT com> <200407271836 DOT i6RIa5vk015726 AT envy DOT delorie DOT com> NNTP-Posting-Host: sirppi.helsinki.fi X-Trace: oravannahka.helsinki.fi 1090999281 29410 128.214.205.27 (28 Jul 2004 07:21:21 GMT) X-Complaints-To: abuse AT helsinki DOT fi NNTP-Posting-Date: 28 Jul 2004 07:21:21 GMT X-Newsreader: Gnus v5.6.43/Emacs 19.34 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Paul Wilkins writes: > As I'm expecting memset to accept ints in the middle value there should > be no difference. It _does_ accept ints as the value. However, it only uses the least significant byte of that value. > I could've sworn that memset used INT, not BYTE, for the middle element, > so memset would fill the memory range with the integer number 4, It will not. -- Esa Peuha student of mathematics at the University of Helsinki http://www.helsinki.fi/~peuha/