Skip to content

Commit e1fcb18

Browse files
authored
Merge pull request #2881 from geky/fix-armc-inline
events - Add workaround for armc assumptions on integer overflow
2 parents 6f3c62f + 93ba3a7 commit e1fcb18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

events/equeue/equeue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
// calculate the relative-difference between absolute times while
2525
// correctly handling overflow conditions
2626
static inline int equeue_tickdiff(unsigned a, unsigned b) {
27-
return (int)(a - b);
27+
return (int)(unsigned)(a - b);
2828
}
2929

3030
// calculate the relative-difference between absolute times, but

0 commit comments

Comments
 (0)