Commit 1aab2131 authored by john's avatar john

Fix event queue size

Index is masked to 0-31, but queue size is 31.  Size should be 32.
parent 16c8a21e
...@@ -55,7 +55,7 @@ typedef void* (*fptr_p_void)(); ...@@ -55,7 +55,7 @@ typedef void* (*fptr_p_void)();
typedef struct bd_event_queue_s { typedef struct bd_event_queue_s {
unsigned in; /* next free slot */ unsigned in; /* next free slot */
unsigned out; /* next event */ unsigned out; /* next event */
BD_EVENT ev[MAX_EVENTS]; BD_EVENT ev[MAX_EVENTS+1];
} BD_EVENT_QUEUE; } BD_EVENT_QUEUE;
typedef enum { typedef enum {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment