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

@@ -187,7 +187,7 @@ int main(int argc, char *argv[])
gettimeofday(&now, 0);
// this type of casting is absolutely hillarious lol
Screen<Window> *&myWindow = *(Screen<Window> **)(void *)&myScreen;
Screen<Window> *&myWindow = reinterpret_cast<Screen<Window> *&>(myScreen);
while (!main_exit)
{