Merge pull request #2881 from geky/fix-armc-inline

events - Add workaround for armc assumptions on integer overflow
pull/2891/head
Sam Grove 2016-10-03 11:02:52 -05:00 committed by GitHub
commit e1fcb1802d
1 changed files with 1 additions and 1 deletions

View File

@ -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