#1/4 drop cast (enable compiler type check)

This commit is contained in:
rlar 2012-02-07 19:46:34 +00:00
parent 891e4fdef1
commit 50aea0be0c
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2012-02-07 Robert Larice
* src/include/ngspice/complex.h :
#1/4 drop cast (enable compiler type check)
2012-02-07 Holger Vogt / Robert Larice
* src/tclspice.c :
fix varags usage, tcl_printf(), tcl_fprintf(), tcl_vfprintf()

View File

@ -14,8 +14,8 @@ struct ngcomplex {
typedef struct ngcomplex ngcomplex_t;
#define realpart(cval) ((struct ngcomplex *) (cval))->cx_real
#define imagpart(cval) ((struct ngcomplex *) (cval))->cx_imag
#define realpart(cval) (cval)->cx_real
#define imagpart(cval) (cval)->cx_imag
#ifdef CIDER
/* From Cider numcomplex.h