← Back to team overview

kicad-developers team mailing list archive

[PATCH 04/27] Remove superfluous cast

 

---
 eeschema/sch_component.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eeschema/sch_component.cpp b/eeschema/sch_component.cpp
index ff7734e..554adb9 100644
--- a/eeschema/sch_component.cpp
+++ b/eeschema/sch_component.cpp
@@ -1789,7 +1789,7 @@ void SCH_COMPONENT::GetNetListItem( NETLIST_OBJECT_LIST& aNetListItems,
 
             aNetListItems.push_back( item );
 
-            if( ( (int) pin->GetType() == (int) PIN_POWER_IN ) && !pin->IsVisible() )
+            if( ( pin->GetType() == PIN_POWER_IN ) && !pin->IsVisible() )
             {
                 // There is an associated PIN_LABEL.
                 item = new NETLIST_OBJECT();

Follow ups

References