]> granicus.if.org Git - gc/commitdiff
Eliminate 'conversion from size_t to int' MSVC warning in cordprnt.c
authorIvan Maidanski <ivmai@mail.ru>
Wed, 21 Aug 2019 08:13:36 +0000 (11:13 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 21 Aug 2019 08:13:36 +0000 (11:13 +0300)
* cord/cordprnt.c (ec_len): Cast the expression to int explicitly.

cord/cordprnt.c

index aa745ad935686fea660ee8adc8a0ab57387e5205..7eaf3723ae51c278012591a1352bec41dede5b68 100644 (file)
@@ -52,7 +52,7 @@
 
 static int ec_len(CORD_ec x)
 {
-    return(CORD_len(x[0].ec_cord) + (x[0].ec_bufptr - x[0].ec_buf));
+    return (int)(CORD_len(x[0].ec_cord) + (x[0].ec_bufptr - x[0].ec_buf));
 }
 
 /* Possible nonumeric precision values. */