pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/games/exchess/patches
Module Name: pkgsrc
Committed By: he
Date: Sun Jul 24 21:26:30 UTC 2022
Added Files:
pkgsrc/games/exchess/patches: patch-src_score.h
Log Message:
games/exchess: Be explicit about needing signed chars.
Fixes build on NetBSD/powerpc where "char" is unsigned.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/games/exchess/patches/patch-src_score.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/games/exchess/patches/patch-src_score.h
diff -u /dev/null pkgsrc/games/exchess/patches/patch-src_score.h:1.1
--- /dev/null Sun Jul 24 21:26:30 2022
+++ pkgsrc/games/exchess/patches/patch-src_score.h Sun Jul 24 21:26:30 2022
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_score.h,v 1.1 2022/07/24 21:26:30 he Exp $
+
+The piece_sq table depends on signed chars which isn't
+the default on NetBSD/powerpc, so make that explicit.
+
+--- src/score.h.orig 2017-02-04 14:23:32.000000000 +0000
++++ src/score.h
+@@ -96,7 +96,7 @@ char attack_scale[16] = { 0, 1, 2, 4, 9,
+ // stage 3 = ending
+
+
+-char piece_sq[4][7][64] = { // note values cannot exceed +127 or -127!
++signed char piece_sq[4][7][64] = { // note values cannot exceed +127 or -127!
+
+ // Reading these is a little tricky. These tables
+ // are set up to look like a chess board from white's
Home |
Main Index |
Thread Index |
Old Index