[iagno] Add missing int to uint8 changes



commit ca7df7ec028ac48c320c070014412d7bc3ca012d
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Thu Feb 28 09:55:20 2019 +0100

    Add missing int to uint8 changes
    
    See 6b9ae803b42fbc6e7657fb30830932c6f04c04db

 src/game.vala | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/game.vala b/src/game.vala
index 015dc62..71c90f9 100644
--- a/src/game.vala
+++ b/src/game.vala
@@ -111,7 +111,7 @@ private class Game : Object
         /* Stack is oversized: there is 60 turns, each adds one piece,
          * there's place for the end of turn and the opponent passing,
          * and you could flip max ((_size - 2) * 3) tiles in one turn. */
-        undo_stack = new int? [180 * (_size - 1)]; /* (3 + (_size - 2) * 3) * 60 */
+        undo_stack = new uint8? [180 * (_size - 1)]; /* (3 + (_size - 2) * 3) * 60 */
 
         if (_size % 2 == 0)
         {
@@ -148,7 +148,7 @@ private class Game : Object
     {
         Object (size: _size);
 
-        undo_stack = new int? [180 * (_size - 1)];
+        undo_stack = new uint8? [180 * (_size - 1)];
 
         for (uint8 y = 0; y < _size; y++)
         {
@@ -190,7 +190,7 @@ private class Game : Object
         n_current_tiles  = game.n_current_tiles;
         n_opponent_tiles = game.n_opponent_tiles;
 
-        undo_stack = new int? [180 * (size - 1)];
+        undo_stack = new uint8? [180 * (size - 1)];
         /* warning: history not copied */
     }
 


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