From 798d2b2db121b4c6514f977e30d0636edf3ca789 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Fri, 16 Oct 2020 18:36:23 +0200 Subject: [PATCH] add type conversion to int --- src/spicelib/parser/inpgval.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spicelib/parser/inpgval.c b/src/spicelib/parser/inpgval.c index 639f7f984..1f5d9acaa 100644 --- a/src/spicelib/parser/inpgval.c +++ b/src/spicelib/parser/inpgval.c @@ -55,7 +55,7 @@ INPgetValue(CKTcircuit *ckt, char **line, int type, INPtables *tab) } if (error && ft_ngdebug && !eq(*line, "") && !prefix(")", *line)) { fprintf(stderr, "\nWarning: Reading a vector without limiting parens may be dangerous\n%s\nat\n", compline); - fprintf(stderr, "%*s%s\n", *line - compline," ", *line); + fprintf(stderr, "%*s%s\n", (int)(*line - compline)," ", *line); } temp.v.vec.rVec = list; } else if (type == IF_INTVEC) { @@ -78,7 +78,7 @@ INPgetValue(CKTcircuit *ckt, char **line, int type, INPtables *tab) } if (error && ft_ngdebug && !eq(*line, "") && !prefix(")", *line)) { fprintf(stderr, "\nWarning: Reading a vector without limiting parens may be dangerous\n%s\nat\n", compline); - fprintf(stderr, "%*s%s\n", *line - compline, " ", *line); + fprintf(stderr, "%*s%s\n", (int)(*line - compline), " ", *line); } temp.v.vec.iVec = ilist; } else if (type == IF_FLAG) {