Browse code

Change initialization of variable umin to work with signed arithmetic, bb#5786

Steve Morgan authored on 2012/09/18 04:53:14
Showing 1 changed files
... ...
@@ -159,7 +159,7 @@ static void remove_frompools(threadpool_t *t)
159 159
 
160 160
 static void print_queue(int f, work_queue_t *queue, struct timeval *tv_now)
161 161
 {
162
-    long umin=~0UL, umax=0, usum=0;
162
+    long umin=LONG_MAX, umax=0, usum=0;
163 163
     unsigned invalids = 0, cnt = 0;
164 164
     work_item_t *q;
165 165