Fixed slip in DoubleArray>>minMax - used wrong macro to fetch object size! jv
authorJan Vrany <jan.vrany@fit.cvut.cz>
Wed, 07 Sep 2016 13:49:27 +0100
branchjv
changeset 20359 fdc188a74ff6
parent 20358 310244bfc8b3
child 20361 f48f50e335a6
Fixed slip in DoubleArray>>minMax - used wrong macro to fetch object size! This fixes RegressionTests::CompilerTests>>test_min_max
DoubleArray.st
--- a/DoubleArray.st	Wed Sep 07 09:18:33 2016 +0100
+++ b/DoubleArray.st	Wed Sep 07 13:49:27 2016 +0100
@@ -235,7 +235,7 @@
 
 %{  
     if (__ClassInstPtr(__qClass(self))->c_ninstvars == __mkSmallInteger(0)) {
-        INT _sz = __floatArraySize(self);
+        INT _sz = __doubleArraySize(self);
 
         if (_sz > 0) {
             INT _i;