Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix compiler warning about downcast to int32_t
in the end we just change the variable type to float64_t
  • Loading branch information
Soeren Sonnenburg committed Sep 26, 2011
1 parent 138b2e1 commit dce18b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shogun/classifier/KNN.cpp
Expand Up @@ -147,7 +147,7 @@ CLabels* CKNN::apply()

//choose the class that got 'outputted' most often
int32_t out_idx=0;
int32_t out_max=0;
float64_t out_max=0;

for (j=0; j<num_classes; j++)
{
Expand Down

0 comments on commit dce18b6

Please sign in to comment.