Message-ID: <35EC64A0.608E33C4@unb.ca> Date: Tue, 01 Sep 1998 18:18:24 -0300 From: Endlisnis MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp To: Eli Zaretskii CC: djgpp AT delorie DOT com Subject: Re: Am I retarded -or- Why is my exe size so big?!? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk Eli Zaretskii wrote: > DOS = (short*)(((lword)DOS>>12)&0xFFFF0)+((lword)DOS&0xFFFF); > DOS = (short*)((((lword)DOS>>12)&0xFFFF0)+((lword)DOS&0xFFFF)); Ok. I just counted brackets wrong. My intent was to have everything evaluated before being cast as a (short*). > - The second problem is that your cout line is wrong: > > cout << DOS << " should be 0xC1234\n"; > > It should say something like this instead: > > cout << hex << (lword)DOS << " should be 0xC1234\n"; Why is that wrong? It did what I expected. Wouldn't it just call: ostream& operator << (ostream&,void*); -- (\/) Endlisnis (\/) s257m AT unb DOT ca Endlisnis AT GeoCities DOT com Endlis AT nbnet DOT nb DOT ca