From 618732c7bd40ab9de4fd17c2bf3dcb7377902c0f Mon Sep 17 00:00:00 2001 From: rlar Date: Mon, 9 Aug 2010 18:16:02 +0000 Subject: [PATCH] fix assignment to a member of union IFvalue --- ChangeLog | 4 ++++ src/spicelib/parser/inpgval.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 140b1ce2c..3074a6f7e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2010-08-09 Robert Larice + * src/spicelib/parser/inpgval.c : + fix assignment to a member of union IFvalue + 2010-08-07 Robert Larice * src/frontend/parse-bison.c , * src/frontend/parse-bison.h , diff --git a/src/spicelib/parser/inpgval.c b/src/spicelib/parser/inpgval.c index c153bc3cb..c4b28953f 100644 --- a/src/spicelib/parser/inpgval.c +++ b/src/spicelib/parser/inpgval.c @@ -65,7 +65,7 @@ IFvalue *INPgetValue(CKTcircuit *ckt, char **line, int type, INPtables * tab) } else if (type == IF_INSTANCE) { INPgetTok(line, &word, 1); INPinsert(&word, tab); - temp.nValue = word; + temp.uValue = word; } else if (type == IF_STRING) { INPgetStr(line, &word, 1); temp.sValue = word;