diff options
author | jperkin <jperkin@pkgsrc.org> | 2016-04-14 11:11:09 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2016-04-14 11:11:09 +0000 |
commit | 2adf917c2e2c07158b2f92a91e13dc906ccc9ce7 (patch) | |
tree | 042361e544d73e8f3c2770baee1500e2b5c82f65 /misc/kdeedu3 | |
parent | 36d4c851a86ad0a215c3b55d3a1dbc43b032b880 (diff) | |
download | pkgsrc-2adf917c2e2c07158b2f92a91e13dc906ccc9ce7.tar.gz |
Avoid ambiguous overloaded call errors.
Diffstat (limited to 'misc/kdeedu3')
-rw-r--r-- | misc/kdeedu3/distinfo | 3 | ||||
-rw-r--r-- | misc/kdeedu3/patches/patch-kbruch_src_task.cpp | 15 |
2 files changed, 17 insertions, 1 deletions
diff --git a/misc/kdeedu3/distinfo b/misc/kdeedu3/distinfo index 5bf4d41baac..3fd9f0221b0 100644 --- a/misc/kdeedu3/distinfo +++ b/misc/kdeedu3/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.45 2015/11/03 23:49:39 agc Exp $ +$NetBSD: distinfo,v 1.46 2016/04/14 11:11:09 jperkin Exp $ SHA1 (kdeedu-3.5.10.tar.bz2) = c43f7bcd9cb7af7c77a78bc0bd7f51c0e572f589 RMD160 (kdeedu-3.5.10.tar.bz2) = 312d0384fbf243d580b0d3d90e3e21b46a117d0d @@ -16,6 +16,7 @@ SHA1 (patch-kbruch_src_fractionbasewidget.cpp) = caf54b0d8bd03b6494e55bee3d4c9c4 SHA1 (patch-kbruch_src_mainqtwidget.cpp) = d312d5ffb9a32ab35cdb01d60f80889e647b265d SHA1 (patch-kbruch_src_ratiowidget.cpp) = a2c4fca8e12cd4c5e5a08267e2966091e0f4b814 SHA1 (patch-kbruch_src_resultwidget.cpp) = b005f0bb7a8ffd58cabf2ea153ec28dd4cbf9643 +SHA1 (patch-kbruch_src_task.cpp) = 3a369cb5d2ee9187629a6f1eecd4d0c4bf8dabbf SHA1 (patch-kbruch_src_taskview.cpp) = 3bd61c8ba28ce35e1b4c174459efbe545b2531ae SHA1 (patch-kbruch_src_taskwidget.cpp) = e31c5cfd937c4df4b7a519ee5edff28fb318587f SHA1 (patch-kiten_dict.h) = 7b6b27dd9935ef3262eb1defc9d84c0884ae6b94 diff --git a/misc/kdeedu3/patches/patch-kbruch_src_task.cpp b/misc/kdeedu3/patches/patch-kbruch_src_task.cpp new file mode 100644 index 00000000000..cc485f43e0e --- /dev/null +++ b/misc/kdeedu3/patches/patch-kbruch_src_task.cpp @@ -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; |