From 6e05d53d96a9b69a5d89c29fb0e8dfad14015509 Mon Sep 17 00:00:00 2001 From: Hiroaki SHIMODA Date: Wed, 30 May 2012 12:24:39 +0000 Subject: [PATCH] --- yaml --- r: 310407 b: refs/heads/master c: 0cfd32b736ae0c36b42697584811042726c07cba h: refs/heads/master i: 310405: eca20bb619957f19b63d5e56fdf718c878c3b085 310403: 7e7394ebd450cf608c7139927f20a91a23bb26b5 310399: 7e050e6230310c9795013f40b5618395177db15b v: v3 --- [refs] | 2 +- trunk/lib/dynamic_queue_limits.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index a2bdd6c471fc..643849aee57b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 401453a31ea8192eb94f9337f5608de907681bfb +refs/heads/master: 0cfd32b736ae0c36b42697584811042726c07cba diff --git a/trunk/lib/dynamic_queue_limits.c b/trunk/lib/dynamic_queue_limits.c index 6ab4587d052b..c87eb76f2fd4 100644 --- a/trunk/lib/dynamic_queue_limits.c +++ b/trunk/lib/dynamic_queue_limits.c @@ -10,7 +10,7 @@ #include #include -#define POSDIFF(A, B) ((A) > (B) ? (A) - (B) : 0) +#define POSDIFF(A, B) ((int)((A) - (B)) > 0 ? (A) - (B) : 0) /* Records completed count and recalculates the queue limit */ void dql_completed(struct dql *dql, unsigned int count)