Skip to content

Commit

Permalink
Fixed segmentation fault error emerged with DistanceMachine serializa…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
lisitsyn committed Aug 30, 2011
1 parent 9580eb8 commit 21b24b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shogun/machine/DistanceMachine.cpp
Expand Up @@ -45,7 +45,7 @@ void CDistanceMachine::init()
set_store_model_features(true);

distance=NULL;
m_parameters->add((CSGObject**) distance, "distance", "Distance to use");
m_parameters->add((CSGObject**)&distance, "distance", "Distance to use");
}

void CDistanceMachine::distances_lhs(float64_t* result,int32_t idx_a1,int32_t idx_a2,int32_t idx_b)
Expand Down

0 comments on commit 21b24b3

Please sign in to comment.