[mlpack-git] master: Too much Java lately: no 'd' suffix necessary. (b36b3df)

gitdub at mlpack.org gitdub at mlpack.org
Mon Jul 18 13:27:26 EDT 2016


Repository : https://github.com/mlpack/mlpack
On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/59bc0b32630a3ad786706993f4d5e8b087f1c702...0d9a0e263a32b99d8dcf5d2723b3b92c67e669fc

>---------------------------------------------------------------

commit b36b3df2d1e653fac9d632afdc1077cac7bc4d3d
Author: Ryan Curtin <ryan at ratml.org>
Date:   Mon Jul 18 13:27:26 2016 -0400

    Too much Java lately: no 'd' suffix necessary.
    
    Every floating-point literal in C++ is assumed to be double unless otherwise
    specified, so there is no reason to specify anything here.
    
    This should fix the Windows build.


>---------------------------------------------------------------

b36b3df2d1e653fac9d632afdc1077cac7bc4d3d
 src/mlpack/core/util/param.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mlpack/core/util/param.hpp b/src/mlpack/core/util/param.hpp
index 7756908..88c83c1 100644
--- a/src/mlpack/core/util/param.hpp
+++ b/src/mlpack/core/util/param.hpp
@@ -152,7 +152,7 @@
  * https://github.com/mlpack/mlpack/issues/100 for more information.
  */
 #define PARAM_DOUBLE_OUT(ID, DESC) \
-    PARAM_OUT(double, ID, DESC, "", 0.0d, false)
+    PARAM_OUT(double, ID, DESC, "", 0.0, false)
 
 /**
  * Define a string input parameter.




More information about the mlpack-git mailing list