[gnome-chess] Fix valac warnings about static const
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-chess] Fix valac warnings about static const
- Date: Thu, 28 Jul 2016 04:21:54 +0000 (UTC)
commit 263de13df071779476e15a03f19cb2698a305cbb
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Wed Jul 27 22:07:44 2016 -0500
Fix valac warnings about static const
lib/chess-bitboard.vala | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/lib/chess-bitboard.vala b/lib/chess-bitboard.vala
index d39d17d..517650f 100644
--- a/lib/chess-bitboard.vala
+++ b/lib/chess-bitboard.vala
@@ -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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]