Changed ring buffers' readi/writei from int to unsigned
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
static struct {
|
static struct {
|
||||||
event_t buffer[BUFFER_SIZE];
|
event_t buffer[BUFFER_SIZE];
|
||||||
int writei, readi;
|
unsigned writei, readi;
|
||||||
} events;
|
} events;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -159,7 +159,7 @@ typedef struct { unsigned char type, code, isrepeat; } KeyEvent;
|
|||||||
|
|
||||||
volatile struct {
|
volatile struct {
|
||||||
KeyEvent data[32];
|
KeyEvent data[32];
|
||||||
int readi, writei;
|
unsigned readi, writei;
|
||||||
} keyboard_events;
|
} keyboard_events;
|
||||||
|
|
||||||
_go32_dpmi_seginfo old_keyb_handler_seginfo, new_keyb_handler_seginfo;
|
_go32_dpmi_seginfo old_keyb_handler_seginfo, new_keyb_handler_seginfo;
|
||||||
|
|||||||
Reference in New Issue
Block a user