rpms/freedroidrpg/FC-6 freedroidrpg-0.10.0-gcc4.patch,NONE,1.1

Michael Thomas (wart) fedora-extras-commits at redhat.com
Thu Jan 11 16:38:48 UTC 2007


Author: wart

Update of /cvs/extras/rpms/freedroidrpg/FC-6
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv19490

Added Files:
	freedroidrpg-0.10.0-gcc4.patch 
Log Message:
Add upstream patch for a gcc4 fix.



freedroidrpg-0.10.0-gcc4.patch:

--- NEW FILE freedroidrpg-0.10.0-gcc4.patch ---
--- map.c	2006-12-30 12:41:17.000000000 +0100
+++ /src/cvs/FreeDroid/src/map.c	2007-01-10 11:56:48.000000000 +0100
@@ -3661,6 +3661,7 @@
 int
 IsPassable ( float x , float y , int z )
 {
+    if ( z < 0 ) { fprintf ( stderr, "%s: got a negative z. Probable GCC4 bug.", __FUNCTION__); return; }
     Level PassLevel = curShip . AllLevels [ z ] ;
     int x_tile_start, y_tile_start;
     int x_tile_end, y_tile_end;




More information about the scm-commits mailing list