fix signed problems on macppc; found by pvalchev@, fixes by pvalchev@ and
myself.
This commit is contained in:
parent
75964089f4
commit
8448bb3f1e
12
games/eboard/patches/patch-help_cc
Normal file
12
games/eboard/patches/patch-help_cc
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-help_cc,v 1.1 2002/12/14 08:36:40 fgsch Exp $
|
||||
--- help.cc.orig Wed Sep 25 22:11:53 2002
|
||||
+++ help.cc Sat Dec 14 05:27:31 2002
|
||||
@@ -332,7 +332,7 @@ namespace Help {
|
||||
if (strchr(tags,*p)) {
|
||||
|
||||
if (p-q) gtk_text_insert(GTK_TEXT(text),f,pc,0,q,p-q);
|
||||
- for(q=p;*q < 0;q++) ;
|
||||
+ for(q=p;!isprint(*q);q++) ;
|
||||
|
||||
switch(*p) {
|
||||
case '\200': f=fl; break;
|
12
games/eboard/patches/patch-position_h
Normal file
12
games/eboard/patches/patch-position_h
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-position_h,v 1.1 2002/12/14 08:36:40 fgsch Exp $
|
||||
--- position.h.orig Wed Dec 11 16:23:24 2002
|
||||
+++ position.h Wed Dec 11 16:23:58 2002
|
||||
@@ -126,7 +126,7 @@ class Position {
|
||||
bool isDropLegal(piece p,int x1,int y1,piece mycolor,variant vari);
|
||||
|
||||
bool maycastle[4]; // 0=white short, 1=black short, 2=white long, 3=black long
|
||||
- char ep[2]; // enpassant square (ep[0]=-1 for none, ep[0]=-2 for allow any)
|
||||
+ signed char ep[2]; // enpassant square (ep[0]=-1 for none, ep[0]=-2 for allow any)
|
||||
bool sidehint; // used by scratch boards only
|
||||
|
||||
private:
|
Loading…
Reference in New Issue
Block a user