Probable non serious bug in SDL_event.h

line 73-76

   /* This last event is only for bounding internal arrays

It is the number of bits in the event mask datatype – Uint32
*/
SDL_NUMEVENTS = 32

the SDL_NUMEVENTS =32 == 0x20 not make the enum == Uint32 …

change whit line 106:
#define SDL_ALLEVENTS 0xFFFFFFFF

minus #define :wink: and no break the compatibility …

See ya

“Goul_duKat” <@Goul_duKat> ha scritto nel messaggio
news:bjgf94$5n8$1 at sea.gmane.org

#define SDL_ALLEVENTS 0xFFFFFFFF <-- this force compiler to cast Uint8 in
Uint32 … maybe lost performance ?

it’s a bug ? … if you handle event in an Uint8 … i read …

and the SDL_MAXEVENTS is’n declared in all header …

Best regard

line 73-76

   /* This last event is only for bounding internal arrays

It is the number of bits in the event mask datatype – Uint32
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
*/
SDL_NUMEVENTS = 32

the SDL_NUMEVENTS =32 == 0x20 not make the enum == Uint32 …

change whit line 106:
#define SDL_ALLEVENTS 0xFFFFFFFF

minus #define :wink: and no break the compatibility …

It says the event mask data type (which is Uint32), not the event number
data type (an enum).On Mon, Sep 08, 2003 at 01:37:36AM +0200, Goul_duKat wrote:


Glenn Maynard