correct resistor expression line 3707
This commit is contained in:
parent
9eaba91bf2
commit
e5e54f9270
|
|
@ -1,6 +1,7 @@
|
|||
2010-05-08 Holger Vogt
|
||||
* inpcom.c: patch 20/05/10 by Robert: avoid substraction from a builtin 1.0
|
||||
* inpcom.c: update to E, G sources with expressions
|
||||
* inpcom.c, line 3707: put expression for dependent resistor in brackets
|
||||
|
||||
2010-04-26 Dietmar Warning
|
||||
* parser/inpgval.c: correct parsing of integer model parameter given as double
|
||||
|
|
|
|||
|
|
@ -3702,9 +3702,9 @@ static void inp_compat(struct line *deck)
|
|||
/* Find equation, starts with '{', till end of line */
|
||||
str_ptr = strstr(cut_line, "{");
|
||||
xlen = strlen(title_tok) + strlen(node1) + strlen(node2) +
|
||||
strlen(node1) + strlen(node2) + strlen(str_ptr) + 15;
|
||||
strlen(node1) + strlen(node2) + strlen(str_ptr) + 17;
|
||||
xline = (char*)tmalloc(xlen);
|
||||
sprintf(xline, "b%s %s %s I = v(%s, %s)/%s", title_tok, node1, node2,
|
||||
sprintf(xline, "b%s %s %s I = v(%s, %s)/(%s)", title_tok, node1, node2,
|
||||
node1, node2, str_ptr);
|
||||
new_line = alloc(struct line);
|
||||
new_line->li_next = NULL;
|
||||
|
|
|
|||
Loading…
Reference in New Issue