From 4f9171fe2e82c3997b3d8b0cc943ba35e575d87f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Charybdis=29?=
 <stephane.adjemian@univ-lemans.fr>
Date: Tue, 23 Jun 2015 08:58:55 +0200
Subject: [PATCH] Fixed typo and replaced == with isequal in condition.

---
 src/@dates/intersect.m | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/@dates/intersect.m b/src/@dates/intersect.m
index 85d954e..5518d13 100644
--- a/src/@dates/intersect.m
+++ b/src/@dates/intersect.m
@@ -28,8 +28,8 @@ if ~isa(o,'dates') || ~isa(p,'dates')
     error('dates:intersect:ArgCheck','All input arguments must be dates objects!')
 end
 
-if o.length()==p.length() && o==p
-    q = copy(a);
+if o.length()==p.length() && isequal(o, p)
+    q = copy(o);
     return
 end
 
-- 
GitLab