Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157404925
D22581.id65312.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D22581.id65312.diff
View Options
Index: head/games/scid/files/patch-src_fastgame.h
===================================================================
--- head/games/scid/files/patch-src_fastgame.h
+++ head/games/scid/files/patch-src_fastgame.h
@@ -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) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, May 22, 1:14 AM (6 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33412090
Default Alt Text
D22581.id65312.diff (1 KB)
Attached To
Mode
D22581: games/scid: fix build on arm and powerpc
Attached
Detach File
Event Timeline
Log In to Comment