[mlpack] 41/324: Typo which causes a segfault.
Barak A. Pearlmutter
barak+git at cs.nuim.ie
Sun Aug 17 08:21:54 UTC 2014
This is an automated email from the git hooks/post-receive script.
bap pushed a commit to branch svn-trunk
in repository mlpack.
commit 1f242aa187229e4f924ed1264ac44b8eed832727
Author: rcurtin <rcurtin at 9d5b8971-822b-0410-80eb-d18c1038ef23>
Date: Tue Jun 3 23:16:35 2014 +0000
Typo which causes a segfault.
git-svn-id: http://svn.cc.gatech.edu/fastlab/mlpack/trunk@16624 9d5b8971-822b-0410-80eb-d18c1038ef23
---
src/mlpack/methods/kmeans/kmeans_main.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mlpack/methods/kmeans/kmeans_main.cpp b/src/mlpack/methods/kmeans/kmeans_main.cpp
index 3f81020..65bbcd9 100644
--- a/src/mlpack/methods/kmeans/kmeans_main.cpp
+++ b/src/mlpack/methods/kmeans/kmeans_main.cpp
@@ -133,7 +133,7 @@ int main(int argc, char** argv)
if (CLI::HasParam("refined_start"))
{
const int samplings = CLI::GetParam<int>("samplings");
- const double percentage = CLI::GetParam<int>("percentage");
+ const double percentage = CLI::GetParam<double>("percentage");
if (samplings < 0)
Log::Fatal << "Number of samplings (" << samplings << ") must be "
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mlpack.git
More information about the debian-science-commits
mailing list