1.1 --- a/Source/GoGame.m Thu Jul 31 20:01:26 2008 -0700
1.2 +++ b/Source/GoGame.m Sun Feb 06 16:31:03 2011 -0800
1.3 @@ -38,7 +38,8 @@
1.4 {
1.5 static GridCoord const sSpots[10]={ { 3,3}, { 3,9}, { 3,15},
1.6 { 9,3}, { 9,9}, { 9,15},
1.7 - {15,3}, {15,9}, {15,15}, {NSNotFound,NSNotFound} };
1.8 + {15,3}, {15,9}, {15,15},
1.9 + {(unsigned)NSNotFound,(unsigned)NSNotFound} };
1.10 return sSpots;
1.11 }
1.12
1.13 @@ -74,7 +75,7 @@
1.14 board.usesDiagonals = board.allowsMoves = board.allowsCaptures = NO;
1.15 [board addAllCells];
1.16 const GridCoord *spots = [[self class] spotCoords];
1.17 - for( int i=0; spots[i].row!=NSNotFound; i++ )
1.18 + for( int i=0; spots[i].row!=(unsigned)NSNotFound; i++ )
1.19 ((GoSquare*)[board cellAtRow: spots[i].row column: spots[i].col]).dotted = YES;
1.20 [_table addSublayer: board];
1.21 [board release];
1.22 @@ -270,7 +271,8 @@
1.23 + (int) dimensions {return 9;}
1.24 + (const GridCoord*) spotCoords
1.25 {
1.26 - static GridCoord const sSpots[6]= { {2,2}, {2,6}, {4,4}, {6,2}, {6,6}, {NSNotFound,NSNotFound} };
1.27 + static GridCoord const sSpots[6]= { {2,2}, {2,6}, {4,4}, {6,2}, {6,6},
1.28 + {(unsigned)NSNotFound,(unsigned)NSNotFound} };
1.29 return sSpots;
1.30 }
1.31 @end
1.32 @@ -282,7 +284,8 @@
1.33 + (const GridCoord*) spotCoords
1.34 {
1.35 static GridCoord const sSpots[6] = { { 2,2}, { 2,10}, {6,6},
1.36 - {10,2}, {10,10}, {NSNotFound,NSNotFound} };
1.37 + {10,2}, {10,10},
1.38 + {(unsigned)NSNotFound,(unsigned)NSNotFound} };
1.39 return sSpots;
1.40 }
1.41 @end