Import of pkgsrc-2015Q1

This commit is contained in:
2015-04-22 14:34:26 +02:00
committed by Lionel Sambuc
parent 9a8c06dafb
commit 4af1cdf7a9
25114 changed files with 870550 additions and 795435 deletions

View File

@@ -0,0 +1,15 @@
$NetBSD: patch-src_score.cpp,v 1.1 2014/09/11 16:59:16 jperkin Exp $
Avoid overloaded function ambiguity.
--- src/score.cpp.orig 2014-08-17 11:03:08.000000000 +0000
+++ src/score.cpp
@@ -67,7 +67,7 @@ int position::score_pos(game_rec *gr, ts
int TRADES = AVERAGE_SCORE(TRADES_EARLY, TRADES_LATE);
// bonus scales current material score by the ratio of the pawn count
// to the total piece count
- score += (TRADES*score*(pawn_count-piece_count))/(500*sqrt(pawn_count+piece_count));
+ score += (TRADES*score*(pawn_count-piece_count))/(500*sqrt((float)pawn_count+piece_count));
}
/*+++++++++++++++++++++++++++++++