Fix in ByteArray>>_CHECKCAST:/_INSTANCEOF: (typo/copy paste error) development
authorJan Vrany <jan.vrany@fit.cvut.cz>
Sat, 18 Jan 2014 21:44:04 +0000
branchdevelopment
changeset 2974 36b5b06398b5
parent 2972 3d6c08acf4cd
child 2975 ec1f7113fac0
Fix in ByteArray>>_CHECKCAST:/_INSTANCEOF: (typo/copy paste error)
extensions.st
--- a/extensions.st	Sat Jan 18 11:43:43 2014 +0000
+++ b/extensions.st	Sat Jan 18 21:44:04 2014 +0000
@@ -211,7 +211,7 @@
 !ByteArray methodsFor:'vm support'!
 
 _CHECKCAST: cls
-    ^cls == BooleanArray ifTrue:[self] ifFalse:[JavaVM throwClassCastException]
+    ^cls == ByteArray ifTrue:[self] ifFalse:[JavaVM throwClassCastException]
 
     "Created: / 14-05-2013 / 10:09:11 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 ! !
@@ -219,7 +219,7 @@
 !ByteArray methodsFor:'vm support'!
 
 _INSTANCEOF: cls
-    ^BooleanArray == cls ifTrue:[1] ifFalse:[0]
+    ^ByteArray == cls ifTrue:[1] ifFalse:[0]
 
     "Created: / 14-05-2013 / 10:09:33 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 ! !