Browse Source

More warning fixes in conio.c.

tags/v0.99.beta17
Sam Hocevar sam 15 years ago
parent
commit
68ed0f951c
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      examples/conio.c

+ 3
- 3
examples/conio.c View File

@@ -589,17 +589,17 @@ void makeMove(int who, int x, int xsquare[Y_BOARD][X_BOARD])


void sorting(int n[]) void sorting(int n[])
{ {
int i, index, alpha;
int i, j, alpha;
int store[X_BOARD]; int store[X_BOARD];


for(index=0; index<X_BOARD; index++)
for(j=0; j<X_BOARD; j++)
{ {
alpha = max(n); alpha = max(n);
for(i=0; i<X_BOARD; i++) for(i=0; i<X_BOARD; i++)
{ {
if(n[move[i]] == alpha) if(n[move[i]] == alpha)
{ {
store[index] = move[i];
store[j] = move[i];
n[move[i]] = -1; n[move[i]] = -1;
break; break;
} }


Loading…
Cancel
Save