Import of pkgsrc-2016Q3

This commit is contained in:
2016-10-14 07:49:11 +02:00
committed by Lionel Sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949749 additions and 377083 deletions

View File

@@ -0,0 +1,15 @@
$NetBSD: patch-kbruch_src_task.cpp,v 1.1 2016/04/14 11:11:09 jperkin Exp $
Avoid ambiguous overloaded call errors.
--- kbruch/src/task.cpp.orig 2007-05-14 07:38:52.000000000 +0000
+++ kbruch/src/task.cpp
@@ -72,7 +72,7 @@ void task::create_task(unsigned int pmax
/* later we must be able to find a main denominator;
* so 2 ^ max_product_length couldn't be bigger than the max. denominator */
}
- while ((unsigned int) pow(2, max_product_length) > pmax_md);
+ while ((unsigned int) pow((double)2, (double)max_product_length) > pmax_md);
#ifdef DEBUG
kdDebug() << "2: max_product_length: " << max_product_length << endl;