Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/vowpal_wabbit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorU-NORTHAMERICA\jcl <jcl@JCL.northamerica.corp.microsoft.com>2012-08-21 17:26:22 +0400
committerU-NORTHAMERICA\jcl <jcl@JCL.northamerica.corp.microsoft.com>2012-08-21 17:26:22 +0400
commit3a44f7cf11984548b577bc4150506ba0626b2fab (patch)
tree835e80695375408554763bafeccb0206c6db78c0 /vowpalwabbit/sparse_dense.h
parent778f8e8c7aa77f0c31ea1125966f243fd53f0ddd (diff)
dealing with warnings
Diffstat (limited to 'vowpalwabbit/sparse_dense.h')
-rw-r--r--vowpalwabbit/sparse_dense.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/vowpalwabbit/sparse_dense.h b/vowpalwabbit/sparse_dense.h
index 649d7365..6ae8498e 100644
--- a/vowpalwabbit/sparse_dense.h
+++ b/vowpalwabbit/sparse_dense.h
@@ -13,7 +13,7 @@ embodied in the content of this file are licensed under the BSD
inline float sign(float w){ if (w < 0.) return -1.; else return 1.;}
inline float trunc_weight(float w, float gravity){
- return (gravity < fabsf(w)) ? w - sign(w) * gravity : 0.;
+ return (gravity < fabsf(w)) ? w - sign(w) * gravity : 0.f;
}
float sd_add(weight* weights, size_t mask, feature* begin, feature* end);