Fix overflow check in StringInfo; add missing casts

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: 42f50cb8fa9848bbbc6776bcea03293a6b28b2d4
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2017-01-10T14:41:13Z
Releases: 10.0
Fix overflow check in StringInfo; add missing casts

A few thinkos I introduced in fa2fa9955280.  Also, amend a similarly
broken comment.

Report by Daniel Vérité.
Authors: Daniel Vérité, Álvaro Herrera
Discussion: https://postgr.es/m/1706e85e-60d2-494e-8a64-9af1e1b2186e@manitou-mail.org

Files

PathChange+/−
src/backend/lib/stringinfo.c modified +7 −6

Discussion