Skip to content

Commit

Permalink
fix some compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lumiZGorlic committed Mar 31, 2021
1 parent 3fc668f commit 0aa1780
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions TODOs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

- look at uint64_t, re-test magics generation, re-run perf

- i change map to unordered_map in header and it doesn't get re-compiled, investigate that

- try to use a U64 instead of move and see if speed better
Expand Down
4 changes: 2 additions & 2 deletions magics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ void magics::genOccForLinesNDiags() {
// diagonal west-east the square belongs to
std::vector<int> vTmp = v1[mapWE[mapReal[sqr]]];
int N = vTmp.size();
int maxVal = pow(2, N);
U64 maxVal = pow(2, N);

// go through all the permutations that the diagonal can have
// and apply the mapping
Expand All @@ -502,7 +502,7 @@ void magics::genOccForLinesNDiags() {
// diagonal east-west the square belongs to
std::vector<int> vTmp2 = v2[mapEW[mapReal[sqr]]];
int N2 = vTmp2.size();
int maxVal2 = pow(2, N2);
U64 maxVal2 = pow(2, N2);

// go through all the permutations that the diagonal can have
// and apply the mapping
Expand Down

0 comments on commit 0aa1780

Please sign in to comment.