Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 18, 2009, 4:03:59 PM (15 years ago)
Author:
rgrieder
Message:

Found even more casts. They sure aren't all of them, but I hope to have caught every pointer C-style cast because they can be very dangerous.
Note: I didn't do the pointer casts in the network library because that would have taken way too long.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/core/LuaBind.cc

    r3280 r3301  
    124124  const char * LuaBind::lua_Chunkreader(lua_State *L, void *data, size_t *size)
    125125  {
    126     LoadS* ls = ((LoadS*)data);
     126    LoadS* ls = static_cast<LoadS*>(data);
    127127    if (ls->size == 0) return NULL;
    128128    *size = ls->size;
Note: See TracChangeset for help on using the changeset viewer.