From 082f571eedab32f34819496dd52315d99c94d29d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Telemachus=29?=
 <stephane.adjemian@univ-lemans.fr>
Date: Sun, 9 Nov 2014 16:46:10 +0100
Subject: [PATCH] Fixed bug (wrong condition on object type).

---
 src/dassert.m | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/dassert.m b/src/dassert.m
index 60f8873..d3cc802 100644
--- a/src/dassert.m
+++ b/src/dassert.m
@@ -44,14 +44,10 @@ if ~(isequal(nA,nB) && isequal(sA,sB))
     error('dassert:: Dimensions of compared objects A and B don''t match!')
 end
 
-if isequal(cA,cB)
+if ~isequal(cA,cB)
     error('dassert:: Compared objects are not of the same type!')
 end
 
-if iscell(B) && ~iscell(A)
-    error('assert:: Compared objects are not of the same type!')
-end
-
 if isa(cA,'double')
     if use_isequal_matlab_builtin
         t = isequal(A,B);
-- 
GitLab