# HG changeset patch # User KUDr # Date 1169246510 0 # Node ID b3c4c4b66249e7fe9b2b905e95befc728e0235fe # Parent 88540735bad41c91fa632c6fe274d5e2fd99fbc6 (svn r8284) -Fix (r8277): g++ compilation error: missing brackets in sizeof diff -r 88540735bad4 -r b3c4c4b66249 src/waypoint.cpp --- a/src/waypoint.cpp Fri Jan 19 21:40:10 2007 +0000 +++ b/src/waypoint.cpp Fri Jan 19 22:41:50 2007 +0000 @@ -356,7 +356,7 @@ /* instead of 'static Station stat' use byte array to avoid Station's destructor call upon exit. As * a side effect, the station is not constructed now. */ - static byte stat_raw[sizeof Station]; + static byte stat_raw[sizeof(Station)]; static Station &stat = *(Station*)stat_raw; stat.train_tile = stat.xy = wp->xy;