Skip to content

Commit

Permalink
use isnan from CMath
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Sonnenburg committed Jul 26, 2013
1 parent d459978 commit 02d5912
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shogun/classifier/vw/VwParser.cpp
Expand Up @@ -282,7 +282,7 @@ void CVwParser::feature_value(substring &s, v_array<substring>& feat_name, float
break;
case 2:
v = SGIO::float_of_substring(feat_name[1]);
if (isnan(v))
if (CMath::is_nan(v))
SG_SERROR("error NaN value for feature %s! Terminating!\n",
SGIO::c_string_of_substring(feat_name[0]));
break;
Expand Down

0 comments on commit 02d5912

Please sign in to comment.