diff --git a/src/common/memory.cpp b/src/common/memory.cpp index 5b93f2b37c..afac3b1f74 100644 --- a/src/common/memory.cpp +++ b/src/common/memory.cpp @@ -783,7 +783,7 @@ bool wxDebugContext::PrintStatistics(bool detailed) { wxObject *obj = (wxObject *)st->GetActualData(); if (obj->GetClassInfo()->GetClassName()) - className = obj->GetClassInfo()->GetClassName(); + className = (wxChar*)obj->GetClassInfo()->GetClassName(); } wxDebugStatsStruct *stats = FindStatsStruct(list, className); if (!stats)