summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Userland/Libraries/LibJS/Heap/Cell.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Heap/Cell.h b/Userland/Libraries/LibJS/Heap/Cell.h
index 2e7fb0494c..dabd43a47e 100644
--- a/Userland/Libraries/LibJS/Heap/Cell.h
+++ b/Userland/Libraries/LibJS/Heap/Cell.h
@@ -65,13 +65,13 @@ public:
void visit(GCPtr<T> cell)
{
if (cell)
- visit_impl(*cell.ptr());
+ visit_impl(const_cast<RemoveConst<T>&>(*cell.ptr()));
}
template<typename T>
void visit(NonnullGCPtr<T> cell)
{
- visit_impl(*cell.ptr());
+ visit_impl(const_cast<RemoveConst<T>&>(*cell.ptr()));
}
void visit(Value value)