# HG changeset patch # User etisserant # Date 1164811875 -3600 # Node ID adc6572caf5d6e6d7719c56f37212ca9b189894e # Parent 8a1047ab51f4f50af11a89543b00da9826560dd0 minval/maxval macro operators precedence fix. Thanks Luis Jim?nez. diff -r 8a1047ab51f4 -r adc6572caf5d drivers/timers_unix/timers_unix.c --- a/drivers/timers_unix/timers_unix.c Thu Aug 31 10:28:53 2006 +0200 +++ b/drivers/timers_unix/timers_unix.c Wed Nov 29 15:51:15 2006 +0100 @@ -81,7 +81,7 @@ pthread_join(*Thread, NULL); } -#define maxval(a,b) a>b?a:b +#define maxval(a,b) ((a>b)?a:b) void setTimer(TIMEVAL value) { // printf("setTimer(TIMEVAL value=%d)\n", value); diff -r 8a1047ab51f4 -r adc6572caf5d src/timer.c --- a/src/timer.c Thu Aug 31 10:28:53 2006 +0200 +++ b/src/timer.c Wed Nov 29 15:51:15 2006 +0100 @@ -32,7 +32,7 @@ TIMEVAL total_sleep_time = TIMEVAL_MAX; TIMER_HANDLE last_timer_raw = -1; -#define minval(a,b) a