fix signed problems on macppc; found by pvalchev@, fixes by pvalchev@ and

myself.
This commit is contained in:
fgsch 2002-12-14 08:36:40 +00:00
parent 75964089f4
commit 8448bb3f1e
2 changed files with 24 additions and 0 deletions

View 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;

View 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: