add type conversion to int

This commit is contained in:
Holger Vogt 2020-10-16 18:36:23 +02:00
parent a95700799d
commit 798d2b2db1
1 changed files with 2 additions and 2 deletions

View File

@ -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) {