Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit 1dfcc60

Browse files
hkielOpenModelica-Hudson
authored andcommitted
replace matchcontinue by match
Belonging to [master]: - #2002
1 parent eaa2e12 commit 1dfcc60

File tree

2 files changed

+90
-115
lines changed

2 files changed

+90
-115
lines changed

Compiler/FrontEnd/ComponentReference.mo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function hashComponentRef "new hashing that properly deals with subscript
8686
input DAE.ComponentRef cr;
8787
output Integer hash;
8888
algorithm
89-
hash := matchcontinue(cr)
89+
hash := match(cr)
9090
local
9191
DAE.Ident id;
9292
DAE.Type tp;
@@ -103,7 +103,7 @@ hash := matchcontinue(cr)
103103
case(DAE.CREF_ITER(id,_,tp,subs))
104104
then stringHashDjb2(id)+ hashSubscripts(tp,subs);
105105
else 0;
106-
end matchcontinue;
106+
end match;
107107
end hashComponentRef;
108108

109109
protected protected function hashSubscripts "help function, hashing subscripts making sure [1,2] and [2,1] doesn't match to the same number"

0 commit comments

Comments
 (0)