Skip to content

Commit

Permalink
Fix Map into LinkedHashMap
Browse files Browse the repository at this point in the history
  • Loading branch information
Dolu1990 committed Jan 13, 2022
1 parent 20bd9bf commit 0250221
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crypto/src/main/scala/spinal/crypto/devtype/DevTypes.scala
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@ abstract class DNode{
/**
* Get all children and return a map with the number of occurrence of each children
*/
private def ctnChildrenOccurrence(children: List[DNode]): Map[DNode, Int] = {
private def ctnChildrenOccurrence(children: List[DNode]): mutable.LinkedHashMap[DNode, Int] = {

val map = mutable.Map[DNode, Int]()
val map = mutable.LinkedHashMap[DNode, Int]()

for(child <- children){
breakable {
Expand All @@ -153,7 +153,7 @@ abstract class DNode{
}
}

map.toMap
map
}

/**
Expand Down

0 comments on commit 0250221

Please sign in to comment.