Browse Source

Bugfix: roundl: Add needed parenthesis to perform ?: before +

Luke Dashjr 12 years ago
parent
commit
3f1bed6556
1 changed files with 1 additions and 1 deletions
  1. 1 1
      miner.h

+ 1 - 1
miner.h

@@ -196,7 +196,7 @@ void *alloca (size_t);
 #endif
 
 #ifndef roundl
-#define roundl(x)   (long double)((long long)((x==0)?0.0:((x)+((x)>0)?0.5:-0.5)))
+#define roundl(x)   (long double)((long long)((x==0)?0.0:((x)+(((x)>0)?0.5:-0.5))))
 #endif
 
 enum alive {