File tree 4 files changed +10
-10
lines changed
4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -340,7 +340,7 @@ namespace Polyfish
340
340
341
341
bool green () const
342
342
{
343
- return (( int ) recommendation & ( int ) CtgMoveRecommendation::GreenMove)
343
+ return (int ( recommendation) & int ( CtgMoveRecommendation::GreenMove) )
344
344
&& annotation != CtgMoveAnnotation::BadMove
345
345
&& annotation != CtgMoveAnnotation::LosingMove
346
346
&& annotation != CtgMoveAnnotation::InterestingMove
@@ -349,7 +349,7 @@ namespace Polyfish
349
349
350
350
bool red () const
351
351
{
352
- return (( int ) recommendation & ( int ) CtgMoveRecommendation::RedMove);
352
+ return (int ( recommendation) & int ( CtgMoveRecommendation::RedMove) );
353
353
}
354
354
};
355
355
@@ -921,10 +921,10 @@ namespace Polyfish
921
921
CtgMove& ctgMove = (CtgMove&)stats;
922
922
923
923
// Recommendations
924
- ctgMove.recommendation = ( CtgMoveRecommendation) positionData.positionPage [( uint32_t ) positionData.positionPage [0 ] + 3 + 9 + 4 + 7 + 7 ];
924
+ ctgMove.recommendation = CtgMoveRecommendation ( positionData.positionPage [uint32_t ( positionData.positionPage [0 ]) + 3 + 9 + 4 + 7 + 7 ]) ;
925
925
926
926
// Commentary
927
- ctgMove.commentary = ( CtgMoveCommentary) positionData.positionPage [( uint32_t ) positionData.positionPage [0 ] + 3 + 9 + 4 + 7 + 7 + 1 ];
927
+ ctgMove.commentary = CtgMoveCommentary ( positionData.positionPage [uint32_t ( positionData.positionPage [0 ]) + 3 + 9 + 4 + 7 + 7 + 1 ]) ;
928
928
}
929
929
930
930
Move CtgBook::get_pseudo_move (const CtgPositionData& positionData, int moveNum) const
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ bool FileMapping::map(const std::string& f, bool verbose)
85
85
}
86
86
87
87
// Assign
88
- mapping = ( uint64_t ) mmap;
88
+ mapping = uint64_t ( mmap) ;
89
89
baseAddress = viewBase;
90
90
dataSize = size_t (li.QuadPart );
91
91
#else
Original file line number Diff line number Diff line change @@ -551,7 +551,7 @@ namespace Polyfish
551
551
bookMoves.end (),
552
552
[&totalWeight](const PolyglotBookMove& x)
553
553
{
554
- return ( uint64_t ) x.entry .count * 200 < totalWeight;
554
+ return uint64_t ( x.entry .count ) * 200 < totalWeight;
555
555
}),
556
556
bookMoves.end ());
557
557
#endif
Original file line number Diff line number Diff line change @@ -896,13 +896,13 @@ CommandLine::CommandLine(int _argc, char** _argv) :
896
896
if (bytes < KB)
897
897
ss << bytes << " B" ;
898
898
else if (bytes < MB)
899
- ss << std::fixed << std::setprecision (decimals) << (( double ) bytes / KB) << " KB" ;
899
+ ss << std::fixed << std::setprecision (decimals) << (double ( bytes) / KB) << " KB" ;
900
900
else if (bytes < GB)
901
- ss << std::fixed << std::setprecision (decimals) << (( double ) bytes / MB) << " MB" ;
901
+ ss << std::fixed << std::setprecision (decimals) << (double ( bytes) / MB) << " MB" ;
902
902
else if (bytes < TB)
903
- ss << std::fixed << std::setprecision (decimals) << (( double ) bytes / GB) << " GB" ;
903
+ ss << std::fixed << std::setprecision (decimals) << (double ( bytes) / GB) << " GB" ;
904
904
else
905
- ss << std::fixed << std::setprecision (decimals) << (( double ) bytes / TB) << " TB" ;
905
+ ss << std::fixed << std::setprecision (decimals) << (double ( bytes) / TB) << " TB" ;
906
906
907
907
return ss.str ();
908
908
}
You can’t perform that action at this time.
0 commit comments