pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/games/exchess/patches games/exchess: Be explicit about...
details: https://anonhg.NetBSD.org/pkgsrc/rev/ba5bf9d5dbe8
branches: trunk
changeset: 382294:ba5bf9d5dbe8
user: he <he%pkgsrc.org@localhost>
date: Sun Jul 24 21:26:30 2022 +0000
description:
games/exchess: Be explicit about needing signed chars.
Fixes build on NetBSD/powerpc where "char" is unsigned.
diffstat:
games/exchess/patches/patch-src_score.h | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diffs (20 lines):
diff -r 67603f15b882 -r ba5bf9d5dbe8 games/exchess/patches/patch-src_score.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/exchess/patches/patch-src_score.h Sun Jul 24 21:26:30 2022 +0000
@@ -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