From: Thomas Weber <tweber@debian.org>
Subject: Fix test failures due to strict type checking of matrices
Origin: upstream, http://octave.svn.sourceforge.net/viewvc/octave?view=revision&revision=8203
--- a/src/bwlabel.cc
+++ b/src/bwlabel.cc
@@ -298,7 +298,7 @@
 }
 
 /*
-%!assert(bwlabel([0 1 0; 0 0 0; 1 0 1]),[0 1 0; 0 0 0; 2 0 3]);
+%!assert(bwlabel(logical([0 1 0; 0 0 0; 1 0 1])),[0 1 0; 0 0 0; 2 0 3]);
 */
 
 
--- a/inst/imtophat.m
+++ b/inst/imtophat.m
@@ -56,7 +56,7 @@
 %!test
 %! I = [1 1 1; 1 1 1; 1 1 1;];
 %! se = [1 1; 0 1;];
-%! result = imtophat(I, se);
+%! result = logical(imtophat(I, se));
 %! expected = 0.5 < [0 0 1; 0 0 1; 1 1 1];
 %! assert(expected, result);
 
