changeset 4964:a2d501212e8a draft

(svn r6963) - Fix (r6960): signed/unsigned complaints from MSVC
author peter1138 <peter1138@openttd.org>
date Fri, 27 Oct 2006 14:05:42 +0000
parents 36038ee8fe7c
children a65f925966f0
files newgrf.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/newgrf.c
+++ b/newgrf.c
@@ -90,14 +90,14 @@
 
 typedef void (*SpecialSpriteHandler)(byte *buf, int len);
 
-static const uint _vehcounts[4] = {
+static const int _vehcounts[4] = {
 	/* GSF_TRAIN */    NUM_TRAIN_ENGINES,
 	/* GSF_ROAD */     NUM_ROAD_ENGINES,
 	/* GSF_SHIP */     NUM_SHIP_ENGINES,
 	/* GSF_AIRCRAFT */ NUM_AIRCRAFT_ENGINES
 };
 
-static const uint _vehshifts[4] = {
+static const int _vehshifts[4] = {
 	/* GSF_TRAIN */    0,
 	/* GSF_ROAD */     ROAD_ENGINES_INDEX,
 	/* GSF_SHIP */     SHIP_ENGINES_INDEX,
@@ -2615,7 +2615,7 @@
 							uint start = 0;
 							uint size  = 0;
 							uint shift = _vehshifts[feature];
-							uint i;
+							int i;
 
 							if (op == 6) {
 								/* Return GRFID of set that reserved ID */