summaryrefslogtreecommitdiff
path: root/test/checkers.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2005-04-11 07:35:33 +0000
committerMatthias Melcher <fltk@matthiasm.com>2005-04-11 07:35:33 +0000
commite72630762df5d3dfb34bf0866b7d908c93108bff (patch)
tree1a26152243e0f59ef329cea4bb89fa97e6bb72de /test/checkers.cxx
parente9a3f0e927853890a424f8f46273dc010f3980e3 (diff)
Remove all warnings for Mac buidl with gcc (except one)
- some warnings about using char for indexing - some warnings about using signed int in strncmp - some warnings about deprecated fl_ask (replaced with fl_choice) The on warning not removed is the strftime("%c") in fluid since I don't know anything about PS and I don't know if a different data format would break PS. Mike? git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4270 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test/checkers.cxx')
-rw-r--r--test/checkers.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/checkers.cxx b/test/checkers.cxx
index 720a109d5..83eb1b7f2 100644
--- a/test/checkers.cxx
+++ b/test/checkers.cxx
@@ -221,7 +221,7 @@ void evaluateboard(node *n,int print) {
if (!n->who) tb = b; // move was black's
else {
- for (int i=0; i<45; i++) flipboard[44-i] = flip[b[i]];
+ for (int i=0; i<45; i++) flipboard[44-i] = flip[(int)b[i]];
tb = flipboard;
}
@@ -413,7 +413,7 @@ void movepiece(node* f, int i, node* jnode) {
static char jumphappened;
for (int k=0; k<4; k++) {
- int direction = offset[b[i]][k];
+ int direction = offset[(int)b[i]][k];
if (!direction) break;
int j = i+direction;
if (b[j] == EMPTY) {