Mail Archives: djgpp/1997/01/29/11:11:23
At 20:30 28/01/97 -0500, DJ Delorie wrote:
>
>> function. Anyway, here's my problem; To my understanding the following
>> are 100% equal:
>>
>> other_stuff = stuff / 256;
>> other_stuff = stuff << 8;
>
>The second multiplies. Try ">> 8" instead.
>
>
Also, as the whole source was not posted, if the source is compiled as C++,
the segfault is developed...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Cesar Scarpini Rabak E-mail: csrabak AT ipt DOT br
DME/ASC Phone: 55-11-268-3522 Ext.350
IPT - Instituto de Pesquisas Tecnologicas Fax: 55-11-268-5996
Av. Prof. Almeida Prado, 532. Sao Paulo - SP 05508-901 BRAZIL
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Raw text -