Fix coverity complaint about commit 40d964ec99.

Amit Kapila <akapila@postgresql.org>

Commit: 2401d93718310237b3cb1ff914abc1bcbdd8e1dc
Author: Amit Kapila <akapila@postgresql.org>
Date: 2020-04-01T03:58:13Z
Releases: 13.0
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

Files

PathChange+/−
src/backend/commands/vacuum.c modified +1 −1

Discussion

Cited messages not in the archive: 20200329224818.6phnhv7o2q2rfovf@alap3.anarazel.de