[four-in-a-row] Remove two unneeded casts.



commit 8f33c1ec12939c14383242db9a453bf44b64a67a
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Thu Dec 26 18:37:14 2019 +0100

    Remove two unneeded casts.

 src/four-in-a-row.vala | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/four-in-a-row.vala b/src/four-in-a-row.vala
index d9b1aae..d0ae0e4 100644
--- a/src/four-in-a-row.vala
+++ b/src/four-in-a-row.vala
@@ -364,7 +364,7 @@ private class FourInARow : Gtk.Application
                     uint8 c = AI.playgame (ai_level, vstr);
                     if (c >= BOARD_COLUMNS) // c could be uint8.MAX if board is full
                         return Source.REMOVE;
-                    process_move ((uint8) c);
+                    process_move (c);
                     playgame_timeout = 0;
                     return Source.REMOVE;
                 });
@@ -526,7 +526,7 @@ private class FourInARow : Gtk.Application
                         uint8 col = AI.playgame (ai_level, vstr);
                         if (col >= BOARD_COLUMNS)   // c could be uint8.MAX if the board is full
                             set_gameover (true);
-                        var nm = new NextMove ((uint8) col, this);
+                        var nm = new NextMove (col, this);
                         Timeout.add (SPEED_DROP, nm.exec);
                         playgame_timeout = 0;
                         return Source.REMOVE;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]