[squeak-dev] [Q] How should be this method ?

Stéphane Rollandin lecteur at zogotounga.net
Wed Mar 3 14:09:40 UTC 2010


I guess this comes from the brand new changes in the reader by Nicolas: 
type -32767 instead of - 32767

Stef


Le 03/03/2010 14:12, Edgar J. De Cleene a écrit :
> !SoundBuffer methodsFor: '*MuO-Music' stamp: 'spfa 11/18/2009 18:16'!
> mixedWith: aSoundBuffer
>
> ^ ((aSoundBuffer size >= self size) ifTrue: [aSoundBuffer] ifFalse: [self])
> collectWithIndex: [:s :i |
> (s + (self at: i ifAbsent: [0])) forceIn: (- 32767 to: 32767)].
>
> Importing in trunk 9553 the compiler say is wrong
>
>
>
> mixedWith: aSoundBuffer
>
> ^ ((aSoundBuffer size >= self size) ifTrue: [aSoundBuffer] ifFalse: [self])
> collectWithIndex: [:s :i |
> (s + (self at: i ifAbsent: [0])) forceIn: ( expression expected ->-
> 32767 to: 32767)].
>
>
> Could explain ?
>
> Edgar
>
>
>
>






More information about the Squeak-dev mailing list