summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lang/gnu-smalltalk/files/SequenceableCollection-size-3.2.4.patch')
-rw-r--r--dev-lang/gnu-smalltalk/files/SequenceableCollection-size-3.2.4.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/dev-lang/gnu-smalltalk/files/SequenceableCollection-size-3.2.4.patch b/dev-lang/gnu-smalltalk/files/SequenceableCollection-size-3.2.4.patch
new file mode 100644
index 0000000..1842e46
--- /dev/null
+++ b/dev-lang/gnu-smalltalk/files/SequenceableCollection-size-3.2.4.patch
@@ -0,0 +1,23 @@
+--- a/kernel/SeqCollect.st
++++ b/kernel/SeqCollect.st
+@@ -1104,9 +1104,16 @@ some access and manipulation methods.'>
+ ^count
+ ]
+
++ size [
++ "Answer a dummy size of 0, so that SequenceableCollection>>#do: works."
++
++ <category: 'testing collections'>
++ ^0
++ ]
++
+ growSize [
+ <category: 'private methods'>
+- ^self size
++ ^(self size max: 8)
+ ]
+
+ swap: anIndex with: anotherIndex [
+--
+1.7.2.5
+