Skip to content

Commit

Permalink
RavelCAPI updated. Locality preserved on renameAllVariable. For Ravel…
Browse files Browse the repository at this point in the history
… #661.
  • Loading branch information
highperformancecoder committed Jan 3, 2025
1 parent dfd0659 commit 0566ccd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion RavelCAPI
Submodule RavelCAPI updated 2 files
+1 −1 Makefile
+1 −1 ravelRelease.h
3 changes: 2 additions & 1 deletion model/group.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1319,7 +1319,8 @@ namespace minsky
}
else
{
v->name(newName);
// ensure locality is preserved across the rename
v->name(varScope==v->group.lock()? uqNewName: (':'+uqNewName));
if (auto vv=v->vValue())
v->retype(vv->type()); // ensure correct type. Note this invalidates v.
}
Expand Down

0 comments on commit 0566ccd

Please sign in to comment.