Skip to content

Commit

Permalink
update slice_cfr.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
yffbit committed Apr 16, 2024
1 parent 9de2914 commit adc1bcf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/solver/slice_cfr.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <climits>
#include "include/solver/slice_cfr.h"
#include "include/ranges/RiverRangeManager.h"

Expand Down Expand Up @@ -428,7 +429,7 @@ size_t SliceCFR::init_player_node() {
total += mtx_idx * sizeof(mutex);
for(int i : dfs_idx_map) {
if(i == -1) continue;
player_node[i].mtx = &mtx[(int)(player_node[i].mtx)];
player_node[i].mtx = &mtx[(size_t)(player_node[i].mtx)];
}
total += n_player_node * sizeof(Node);
return total;
Expand Down

0 comments on commit adc1bcf

Please sign in to comment.