From: | Amit Kapila <akapila(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Fix coverity complaint about commit 40d964ec99. |
Date: | 2020-04-01 04:07:25 |
Message-ID: | E1jJUez-0007XM-I6@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Fix coverity complaint about commit 40d964ec99.
The coverity complained that dividing integer expressions and then
converting the integer quotient to type "double" would lose fractional
part. Typecasting one of the arguments of expression with double should
fix the report.
Author: Mahendra Singh Thalor
Reviewed-by: Amit Kapila
Discussion: https://postgr.es/m/20200329224818.6phnhv7o2q2rfovf@alap3.anarazel.de
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/2401d93718310237b3cb1ff914abc1bcbdd8e1dc
Modified Files
--------------
src/backend/commands/vacuum.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2020-04-01 05:50:52 | pgsql: Fix crash in psql when attempting to reuse old connection |
Previous Message | Mahendra Singh Thalor | 2020-04-01 03:09:10 | Re: pgsql: Allow vacuum command to process indexes in parallel. |