Skip to content

Commit

Permalink
Missing call to 'type' in ice2slice 'visitConst'. (#3291)
Browse files Browse the repository at this point in the history
  • Loading branch information
InsertCreativityHere authored Dec 19, 2024
1 parent 5f38d62 commit 013d81a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/src/ice2slice/Gen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -730,13 +730,13 @@ void
Slice::Gen::TypesVisitor::visitConst(const ConstPtr& p)
{
string typeString;
if (auto builtin = dynamic_pointer_cast<Builtin>(p))
if (auto builtin = dynamic_pointer_cast<Builtin>(p->type()))
{
typeString = builtin->kindAsString();
}
else
{
auto constructed = dynamic_pointer_cast<Constructed>(p);
auto constructed = dynamic_pointer_cast<Constructed>(p->type());
assert(constructed);
typeString = constructed->scoped();
}
Expand Down

0 comments on commit 013d81a

Please sign in to comment.