Fix valac warnings about static const

This commit is contained in:
Michael Catanzaro 2016-07-27 22:07:44 -05:00
parent bdeb251331
commit 263de13df0

View file

@ -12,7 +12,7 @@
public class BitBoard : Object
{
/* Bitboard for each location */
public static const int64 set_location_masks[] =
public const int64 set_location_masks[] =
{
0x0000000000000001, 0x0000000000000002, 0x0000000000000004, 0x0000000000000008,
0x0000000000000010, 0x0000000000000020, 0x0000000000000040, 0x0000000000000080,
@ -33,7 +33,7 @@ public class BitBoard : Object
};
/* Mask to clear the given location */
public static const int64 clear_location_masks[] =
public const int64 clear_location_masks[] =
{
0xfffffffffffffffe, 0xfffffffffffffffd, 0xfffffffffffffffb, 0xfffffffffffffff7,
0xffffffffffffffef, 0xffffffffffffffdf, 0xffffffffffffffbf, 0xffffffffffffff7f,
@ -54,7 +54,7 @@ public class BitBoard : Object
};
/* Locations moved over for each move */
public static const int64 over_masks[] =
public const int64 over_masks[] =
{
0x0000000000000000, 0x0000000000000000, 0x0000000000000002, 0x0000000000000006,
0x000000000000000e, 0x000000000000001e, 0x000000000000003e, 0x000000000000007e,
@ -1083,7 +1083,7 @@ public class BitBoard : Object
};
/* Allowed moves for each piece */
public static const int64 move_masks[] =
public const int64 move_masks[] =
{
/* White Pawn */
0x0000000000000300, 0x0000000000000700, 0x0000000000000e00, 0x0000000000001c00,