Re: [AD] Midi input driver

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Monday 02 August 2004 16:10, aj wrote:
> line 119: of the midi input patch
> 
> 119:   id = (midi_input_driver->id & 0xFF) - 'A';
> 
> concerns me, i understand what it does, but i have no access to the 
macro, 
> as its in a CVS file i haven't got, however, from
> looking at the other similar macros, are you sure you are accessing the 
> correct end of the ->id var by using 0xff
> i have a vague idea that this might be an endian issue.

I haven't looked at the code in detail, but (c&0xff) always returns the 
lowest 8 bits on any platform, independent of endianesse.

Evert





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/