Article View: pilot.programmer.codewarrior
Article #62strange variable behavior
From: Doug Crocker
Date: Sun, 15 Apr 2001 17:40
Date: Sun, 15 Apr 2001 17:40
27 lines
1642 bytes
1642 bytes
Can anyone explain this one? Is there a patch or something we don't
have? I have a function with 3 UInt32 in it when I set one variable
to a value all 3 get changed to that value here is an example
static Boolean VarTest()
{
UInt16 recordNum;
Int32 TotRecords;
UInt32 error;
recordNum = 1; // when recordNum is set to 1 TotRecords and error
// are also set to 1
error = 0; // now error, recordNum and error are set to 0
TotRecords = 99; // here all 3 are set to 99
return 1;
}
Using new copy of CodeWarrior 7 under windows 98.
Any ideas on this and/or how to fix it?
thanks in advance
dc
Remove NOSPAM from address to reply via email.
Technical Details
Message-ID:
<8rmjdtcv4ngqtjnbci7gbq1vg7tjmlqh6r@4ax.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!news-out.visi.com!hermes.visi.com!news.maxwell.syr.edu!newsfeed.stanford.edu!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!enews2Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109d41,9c99f778156ee068,start X-Google-Attributes: gid109d41,public X-Google-Thread: 10baa0,9c99f778156ee068,start X-Google-Attributes: gid10baa0,public X-Google-ArrivalTime: 2001-04-15 11:22:10 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!news-out.visi.com!hermes.visi.com!news.maxwell.syr.edu!newsfeed.stanford.edu!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!enews2 From: Doug Crocker <dcrocker@newsNOSPAMguy.com> Newsgroups: pilot.programmer.codewarrior,codewarrior.palm Subject: strange variable behavior Date: Sun, 15 Apr 2001 12:40:06 -0500 Organization: http://extra.newsguy.com Lines: 27 Message-ID: <8rmjdtcv4ngqtjnbci7gbq1vg7tjmlqh6r@4ax.com> NNTP-Posting-Host: p-068.newsdawg.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Newsreader: Forte Agent 1.7/32.534