Skip to content

Commit

Permalink
#180 Use the "equals" method for Double instead of ==
Browse files Browse the repository at this point in the history
  • Loading branch information
thSoft committed Feb 18, 2019
1 parent fe15c6b commit 79b456f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ private void createBlocksFromTopLevel(SimulinkModel simulinkModel) throws Simuli
// Traversing from each block
for (IVisitableMatlabData currentBlockHandle : CellMatlabData.getCellMatlabDataData(toplevelBlockHandles)) {
// If the handle refers to the subsystem block we are traversing, continue
if (Handle.getHandleData(currentBlockHandle) == modelHandle)
if (Handle.getHandleData(currentBlockHandle).equals(modelHandle))
continue;
createBlock(simulinkModel, (Handle) currentBlockHandle);
}
Expand Down

0 comments on commit 79b456f

Please sign in to comment.