cast properly

This commit is contained in:
Andrzej Rybczak
2009-02-16 19:35:12 +01:00
parent 32f959d1ec
commit 0415fa37fe
2 changed files with 2 additions and 2 deletions

View File

@@ -77,7 +77,7 @@ template <class WindowType> class Screen : public BasicScreen
template <class WindowType> void *&Screen<WindowType>::Cmp()
{
return *(void **)(void *)&w;
return reinterpret_cast<void *&>(w);
}
template <class WindowType> WindowType *&Screen<WindowType>::Main()