dabroz/doom3.gpl — Issue #6: pointers are being cast to int
Author: janisozaur
Created: 2011-12-02 12:10:16+00:00
State: open

In neo/game/gamesys/Class.h the constructors for this class cast pointers to int. This it not only a bad coding practice, but it also breaks 64 bit builds:
```neo/game/gamesys/Class.h: In constructor ‘idEventArg::idEventArg(idVec3&)’:
neo/game/gamesys/Class.h:65:95: error: cast from ‘idVec3*’ to ‘int’ loses precision [-fpermissive]
neo/game/gamesys/Class.h: In constructor ‘idEventArg::idEventArg(const idStr&)’:
neo/game/gamesys/Class.h:66:106: error: cast from ‘const char*’ to ‘int’ loses precision [-fpermissive]
neo/game/gamesys/Class.h: In constructor ‘idEventArg::idEventArg(const char*)’:
neo/game/gamesys/Class.h:67:97: error: cast from ‘const char*’ to ‘int’ loses precision [-fpermissive]
neo/game/gamesys/Class.h: In constructor ‘idEventArg::idEventArg(const idEntity*)’:
neo/game/gamesys/Class.h:68:104: error: cast from ‘const idEntity*’ to ‘int’ loses precision [-fpermissive]
neo/game/gamesys/Class.h: In constructor ‘idEventArg::idEventArg(const trace_s*)’:
neo/game/gamesys/Class.h:69:103: error: cast from ‘const trace_s*’ to ‘int’ loses precision [-fpermissive]
```