mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #2881 from geky/fix-armc-inline
events - Add workaround for armc assumptions on integer overflowpull/2891/head
commit
e1fcb1802d
|
@ -24,7 +24,7 @@
|
|||
// calculate the relative-difference between absolute times while
|
||||
// correctly handling overflow conditions
|
||||
static inline int equeue_tickdiff(unsigned a, unsigned b) {
|
||||
return (int)(a - b);
|
||||
return (int)(unsigned)(a - b);
|
||||
}
|
||||
|
||||
// calculate the relative-difference between absolute times, but
|
||||
|
|
Loading…
Reference in New Issue