Skip to content

Commit

Permalink
Simple fix for mkl_multiclass crasher
Browse files Browse the repository at this point in the history
  • Loading branch information
pluskid committed May 22, 2012
1 parent 52d53fd commit 6216379
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/shogun/machine/MulticlassMachine.cpp
Expand Up @@ -52,7 +52,8 @@ CMulticlassMachine::~CMulticlassMachine()

void CMulticlassMachine::set_labels(CLabels* lab)
{
ASSERT(lab->get_label_type() == LT_MULTICLASS);
if (lab)
ASSERT(lab->get_label_type() == LT_MULTICLASS);
CMachine::set_labels(lab);
if (lab)
init_strategy();
Expand Down

0 comments on commit 6216379

Please sign in to comment.