aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaulo Custodio <pauloscustodio@gmail.com>2021-10-29 14:40:28 +0100
committerPaulo Custodio <pauloscustodio@gmail.com>2021-10-29 14:40:28 +0100
commitf58e9e88056887a42482592154c1c7cbe03e61cb (patch)
tree0e0a2ccbb96e0bc81a4055b93f725b14c2daab5e
parent42f850c117e589c502a2ad1d0147f229223fdf44 (diff)
downloadperlweeklychallenge-club-f58e9e88056887a42482592154c1c7cbe03e61cb.tar.gz
perlweeklychallenge-club-f58e9e88056887a42482592154c1c7cbe03e61cb.tar.bz2
perlweeklychallenge-club-f58e9e88056887a42482592154c1c7cbe03e61cb.zip
Fix 64-bit portability
-rw-r--r--challenge-118/paulo-custodio/d/ch_2.d2
1 files changed, 1 insertions, 1 deletions
diff --git a/challenge-118/paulo-custodio/d/ch_2.d b/challenge-118/paulo-custodio/d/ch_2.d
index 122b253812..eed57ac24d 100644
--- a/challenge-118/paulo-custodio/d/ch_2.d
+++ b/challenge-118/paulo-custodio/d/ch_2.d
@@ -227,7 +227,7 @@ Move[] next_moves(Game* game) {
for (int i = 0; i < moves.length; i++) {
Move[] temp_moves;
try_num_moves(&temp_moves, game, moves[i].row, moves[i].col);
- moves[i].num_moves = temp_moves.length;
+ moves[i].num_moves = cast(int)temp_moves.length;
if (min_moves > moves[i].num_moves) min_moves = moves[i].num_moves;
}