diff --git a/ChangeLog b/ChangeLog index 312f8b834..00cf9e2f6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-11-02 Robert Larice + * src/frontend/outitf.c , + * src/spicelib/parser/inp2r.c : + minor beautification + 2010-11-02 Robert Larice * src/ciderlib/input/cards.c , * src/frontend/cpitf.c , diff --git a/src/frontend/outitf.c b/src/frontend/outitf.c index 146a9fc11..003e5c234 100644 --- a/src/frontend/outitf.c +++ b/src/frontend/outitf.c @@ -985,7 +985,7 @@ plotAddRealValue(dataDesc *desc, double value) v->v_compdata = (ngcomplex_t *) newrealloc(v->v_compdata, sizeof(ngcomplex_t) * (size_t) (v->v_length + 1)); v->v_compdata[v->v_length].cx_real = value; - v->v_compdata[v->v_length].cx_imag = (double) 0; + v->v_compdata[v->v_length].cx_imag = 0.0; } v->v_length++; v->v_dims[0]=v->v_length; /* va, must be updated */ diff --git a/src/spicelib/parser/inp2r.c b/src/spicelib/parser/inp2r.c index c9e74e5a9..0c8335b0e 100644 --- a/src/spicelib/parser/inp2r.c +++ b/src/spicelib/parser/inp2r.c @@ -136,7 +136,7 @@ void INP2R(CKTcircuit *ckt, INPtables * tab, card * current) /* copy first part of line */ i -= strlen(t); strncpy(line, current->line, (size_t) i); - line[i]=0; /* terminate */ + line[i] = '\0'; /* terminate */ /* add "tc2=" */ strcat(line, "tc2=");