Revert "cast properly", that wasn't proper casting, lol.
This reverts commit 0415fa37fe.
This commit is contained in:
@@ -187,7 +187,7 @@ int main(int argc, char *argv[])
|
|||||||
gettimeofday(&now, 0);
|
gettimeofday(&now, 0);
|
||||||
|
|
||||||
// this type of casting is absolutely hillarious lol
|
// this type of casting is absolutely hillarious lol
|
||||||
Screen<Window> *&myWindow = reinterpret_cast<Screen<Window> *&>(myScreen);
|
Screen<Window> *&myWindow = *(Screen<Window> **)(void *)&myScreen;
|
||||||
|
|
||||||
while (!main_exit)
|
while (!main_exit)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ template <class WindowType> class Screen : public BasicScreen
|
|||||||
|
|
||||||
template <class WindowType> void *&Screen<WindowType>::Cmp()
|
template <class WindowType> void *&Screen<WindowType>::Cmp()
|
||||||
{
|
{
|
||||||
return reinterpret_cast<void *&>(w);
|
return *(void **)(void *)&w;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class WindowType> WindowType *&Screen<WindowType>::Main()
|
template <class WindowType> WindowType *&Screen<WindowType>::Main()
|
||||||
|
|||||||
Reference in New Issue
Block a user