Commit 00778296 authored by Harald Scheirich's avatar Harald Scheirich
Browse files

Fix signed unsigned conversion warning

parent 432ffafc
......@@ -101,17 +101,17 @@ SECircuitNode<CIRCUIT_NODE_TYPES>& SECircuitPath<CIRCUIT_PATH_TYPES>::GetTargetN
template<CIRCUIT_PATH_TEMPLATE>
bool SECircuitPath<CIRCUIT_PATH_TYPES>::HasValidElements() const
{
int numRCI = (HasResistance() ? 1 : 0) +
unsigned short numRCI = (HasResistance() ? 1 : 0) +
(HasCapacitance() ? 1 : 0) +
(HasInductance() ? 1 : 0);
int numNextRCI = (HasNextResistance() ? 1 : 0) +
unsigned short numNextRCI = (HasNextResistance() ? 1 : 0) +
(HasNextCapacitance() ? 1 : 0) +
(HasNextInductance() ? 1 : 0);
int numSrcState = (HasSwitch() ? 1 : 0) +
unsigned short numSrcState = (HasSwitch() ? 1 : 0) +
(HasValve() ? 1 : 0) +
(HasFluxSource() ? 1 : 0) +
(HasPotentialSource() ? 1 : 0);
int numNextSrcState = (HasNextSwitch() ? 1 : 0) +
unsigned short numNextSrcState = (HasNextSwitch() ? 1 : 0) +
(HasNextValve() ? 1 : 0) +
(HasNextFluxSource() ? 1 : 0) +
(HasNextPotentialSource() ? 1 : 0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment