From 63cad2a60bc2b0c5a1f41dcd3f446b5e325669c3 Mon Sep 17 00:00:00 2001 From: Rohit Grover Date: Tue, 4 Nov 2014 15:39:48 +0000 Subject: [PATCH] Potential fix for #646 --- libraries/mbed/common/us_ticker_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/mbed/common/us_ticker_api.c b/libraries/mbed/common/us_ticker_api.c index f307c8add7..3c803a3c37 100644 --- a/libraries/mbed/common/us_ticker_api.c +++ b/libraries/mbed/common/us_ticker_api.c @@ -37,7 +37,7 @@ void us_ticker_irq_handler(void) { return; } - if ((int64_t)(head->timestamp - us_ticker_read()) <= 0) { + if ((int)(head->timestamp - us_ticker_read()) <= 0) { // This event was in the past: // point to the following one and execute its handler ticker_event_t *p = head;