fix an incorrect typedef and cast
which was of no consequence, because nobody made use of it. ancient, already in the very first commit of ngspice Date: Thu Apr 27 20:03:57 2000 +0000
This commit is contained in:
parent
d95e098488
commit
f4241ef7ea
|
|
@ -2,7 +2,7 @@
|
||||||
#define ngspice_SMPDEFS_H
|
#define ngspice_SMPDEFS_H
|
||||||
|
|
||||||
typedef struct MatrixFrame SMPmatrix;
|
typedef struct MatrixFrame SMPmatrix;
|
||||||
typedef struct MatrixElement *SMPelement;
|
typedef struct MatrixElement SMPelement;
|
||||||
|
|
||||||
/**********
|
/**********
|
||||||
Copyright 1990 Regents of the University of California. All rights reserved.
|
Copyright 1990 Regents of the University of California. All rights reserved.
|
||||||
|
|
|
||||||
|
|
@ -464,7 +464,7 @@ SMPfindElt(SMPmatrix *eMatrix, int Row, int Col, int CreateIfMissing)
|
||||||
Col = Matrix->ExtToIntColMap[Col];
|
Col = Matrix->ExtToIntColMap[Col];
|
||||||
Element = Matrix->FirstInCol[Col];
|
Element = Matrix->FirstInCol[Col];
|
||||||
Element = spcFindElementInCol(Matrix, &Element, Row, Col, CreateIfMissing);
|
Element = spcFindElementInCol(Matrix, &Element, Row, Col, CreateIfMissing);
|
||||||
return (SMPelement *)Element;
|
return Element;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* XXX The following should probably be implemented in spUtils */
|
/* XXX The following should probably be implemented in spUtils */
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ CKTsenComp(CKTcircuit *ckt)
|
||||||
double *elt;
|
double *elt;
|
||||||
/*
|
/*
|
||||||
in smpdefs.h steht:
|
in smpdefs.h steht:
|
||||||
typedef struct MatrixElement *SMPelement;
|
typedef struct MatrixElement SMPelement;
|
||||||
SMPelement * SMPfindElt( SMPmatrix *, int , int , int );
|
SMPelement * SMPfindElt( SMPmatrix *, int , int , int );
|
||||||
(die Fkt. steht in spsmp.c und gibt einen auf SMPelement * gecasteten Elementptr. zurück)
|
(die Fkt. steht in spsmp.c und gibt einen auf SMPelement * gecasteten Elementptr. zurück)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue