From 5af5ea8fe0ea7bae3261525c4866553c098c444e Mon Sep 17 00:00:00 2001 From: Francesco Lannutti Date: Sun, 15 Mar 2020 16:08:23 +0100 Subject: [PATCH] Make the array of CKTisLinearNode unsigned int --- src/include/ngspice/cktdefs.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/include/ngspice/cktdefs.h b/src/include/ngspice/cktdefs.h index e0bb8e310..8e0ffe787 100644 --- a/src/include/ngspice/cktdefs.h +++ b/src/include/ngspice/cktdefs.h @@ -119,8 +119,10 @@ struct CKTcircuit { double **CKTdiag ; #ifdef KIRCHHOFF - double *CKTfvk ; /* KCL Verification array */ - int *CKTnodeIsLinear ; /* Flag to indicate if a node is linear or non-linear */ + double *CKTfvk ; /* KCL Verification array */ + unsigned int *CKTnodeIsLinear ; /* Flag to indicate if a node is linear or non-linear */ + #define CKTnodeIsLinearNode 1 /* Macro to help define the Linear Nodes */ + #define CKTnodeIsNonLinearNode 0 /* Macro to help define the Non Linear Nodes */ CKTmkCurKCLnode **CKTmkCurKCLarray ; /* Array of KCL Currents */ #endif