This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Restore evil-enabling reinterpret_cast in SocketMultiplexer

  • Loading branch information...
nlyan committed Sep 9, 2016
1 parent 0371002 commit 90c3dd6622e25ebe33cfcb3593d2607a50a50b1a
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/lib/net/SocketMultiplexer.cpp
@@ -46,7 +46,8 @@ SocketMultiplexer::SocketMultiplexer() :
// this pointer just has to be unique and not NULL. it will
// never be dereferenced. it's used to identify cursor nodes
// in the jobs list.
- m_cursorMark = static_cast<ISocketMultiplexerJob*>(this);
+ // TODO: Remove this evilness
+ m_cursorMark = reinterpret_cast<ISocketMultiplexerJob*>(this);
// start thread
m_thread = new Thread(new TMethodJob<SocketMultiplexer>(

0 comments on commit 90c3dd6

Please sign in to comment.