From owner-svn-ports-all@freebsd.org Fri Dec 6 12:55:23 2019 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E593F1CB91C; Fri, 6 Dec 2019 12:55:23 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47Tsy35lKQz4P1v; Fri, 6 Dec 2019 12:55:23 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A87D717D1; Fri, 6 Dec 2019 12:55:23 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id xB6CtNYT011296; Fri, 6 Dec 2019 12:55:23 GMT (envelope-from pkubaj@FreeBSD.org) Received: (from pkubaj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id xB6CtNZY011295; Fri, 6 Dec 2019 12:55:23 GMT (envelope-from pkubaj@FreeBSD.org) Message-Id: <201912061255.xB6CtNZY011295@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pkubaj set sender to pkubaj@FreeBSD.org using -f From: Piotr Kubaj Date: Fri, 6 Dec 2019 12:55:23 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r519137 - head/games/scid/files X-SVN-Group: ports-head X-SVN-Commit-Author: pkubaj X-SVN-Commit-Paths: head/games/scid/files X-SVN-Commit-Revision: 519137 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Dec 2019 12:55:24 -0000 Author: pkubaj Date: Fri Dec 6 12:55:23 2019 New Revision: 519137 URL: https://svnweb.freebsd.org/changeset/ports/519137 Log: games/scid: fix build on arm and powerpc Explicitly set signed char for variables that are negative to prevent signed/unsigned issue on arm and powerpc. PR: 242141 Approved by: bsd@volki.at (maintainer), linimon (mentor) Differential Revision: https://reviews.freebsd.org/D22581 Added: head/games/scid/files/patch-src_fastgame.h (contents, props changed) Added: head/games/scid/files/patch-src_fastgame.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/scid/files/patch-src_fastgame.h Fri Dec 6 12:55:23 2019 (r519137) @@ -0,0 +1,20 @@ +--- src/fastgame.h.orig 2019-11-21 14:15:35 UTC ++++ src/fastgame.h +@@ -433,7 +433,7 @@ class FastGame { (private) + + static inline squareT decodeKing (squareT from, byte val) { + ASSERT (val <= 8); +- static const char sqdiff[] = { 0, -9, -8, -7, -1, 1, 7, 8, 9}; ++ static const signed char sqdiff[] = { 0, -9, -8, -7, -1, 1, 7, 8, 9}; + return 0x3F & (from + sqdiff[val]); + } + static inline squareT decodeQueen2byte (byte val) { +@@ -447,7 +447,7 @@ class FastGame { (private) + } + static inline squareT decodeKnight (squareT from, byte val) { + ASSERT (val <= 16); +- static const char sqdiff[] = { 0, -17, -15, -10, -6, 6, 10, 15, 17, 0, 0, 0, 0, 0, 0, 0 }; ++ static const signed char sqdiff[] = { 0, -17, -15, -10, -6, 6, 10, 15, 17, 0, 0, 0, 0, 0, 0, 0 }; + return 0x3F & (from + sqdiff[val]); + } + static inline squareT decodeRook (squareT from, byte val) {