Timers are now 64-bit.
This commit is contained in:
@@ -28,8 +28,8 @@
|
||||
typedef struct mouse_serial_t {
|
||||
int8_t port,
|
||||
type;
|
||||
int pos,
|
||||
delay;
|
||||
int pos;
|
||||
int64_t delay;
|
||||
int oldb;
|
||||
SERIAL *serial;
|
||||
} mouse_serial_t;
|
||||
@@ -47,7 +47,7 @@ sermouse_callback(struct SERIAL *serial, void *priv)
|
||||
|
||||
/* Start a timer to wake us up in a little while. */
|
||||
ms->pos = -1;
|
||||
ms->delay = 5000 * (1 << TIMER_SHIFT);
|
||||
ms->delay = 5000LL * (1LL << TIMER_SHIFT);
|
||||
}
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ sermouse_timer(void *priv)
|
||||
{
|
||||
mouse_serial_t *ms = (mouse_serial_t *)priv;
|
||||
|
||||
ms->delay = 0;
|
||||
ms->delay = 0LL;
|
||||
|
||||
if (ms->pos != -1) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user