Skip to content

Commit

Permalink
avoid compiler warning (implicit cast from pointer to bool)
Browse files Browse the repository at this point in the history
SVN-Revision: 26426
  • Loading branch information
Peter Vanroose committed Sep 13, 2009
1 parent c7aa32d commit 00b52a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/vpdl/tests/test_mixture.cxx
Expand Up @@ -142,10 +142,10 @@ void test_mixture_type(T epsilon, const vcl_string& type_name)
mixture.remove_last();
mixture.remove_last();
mixture.remove_last();
valid = dynamic_cast<const vpdl_gaussian_indep<T,3>*>(&mixture2.distribution(0));
const vpdl_gaussian_indep<T,3>* gauss_indep = dynamic_cast<const vpdl_gaussian_indep<T,3>*>(&mixture2.distribution(0));
TEST(("copy constructor <"+type_name+">").c_str(),
mixture2.num_components() == 3 && mixture2.weight(1) == T(0.15) &&
valid, true);
gauss_indep != 0, true);

vnl_vector_fixed<T,3> pt(T(0), T(1.5), T(1));
T prob = T( 0.1*gauss1.prob_density(pt)
Expand Down

0 comments on commit 00b52a8

Please sign in to comment.