Make a couple of implicit casts explicit to fix compiler warnings.

FossilOrigin-Name: 9676280a9387b8bfba82cfc0087318863d05d4f3
This commit is contained in:
dan
2013-07-05 10:46:08 +00:00
parent 0d08b93673
commit ed20073b8d
4 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -190,7 +190,7 @@ static void percentFinal(sqlite3_context *pCtx){
if( p->nUsed ){
qsort(p->a, p->nUsed, sizeof(double), doubleCmp);
ix = (p->rPct-1.0)*(p->nUsed-1)*0.01;
i1 = ix;
i1 = (unsigned)ix;
i2 = ix==(double)i1 || i1==p->nUsed-1 ? i1 : i1+1;
v1 = p->a[i1];
v2 = p->a[i2];