comparison between 2 list of integer. 27/15227/1
Cedric Delamarre [Tue, 16 Sep 2014 10:21:01 +0000 (12:21 +0200)]
l1 = list(int16(ones(3,3))); l2 = list(int16(ones(3,3)));
l1 == l2

Change-Id: I77e7a9892749ab6426e609a917a9b556d228f0a3

scilab/modules/ast/includes/types/int.hxx

index 0a8abd3..a3a957d 100644 (file)
@@ -136,7 +136,7 @@ public :
             }
         }
 
-        if (memcmp(ArrayOf<T>::get(), pb->get(), GenericType::getSize() * sizeof(int)) != 0)
+        if (memcmp(ArrayOf<T>::get(), pb->get(), GenericType::getSize() * sizeof(T)) != 0)
         {
             return false;
         }