#OTHER
authorStefan Vogel <sv@exept.de>
Tue, 23 Feb 2016 00:22:09 +0100
changeset 19241 87e64d3a8410
parent 19240 47eb606efad3
child 19242 812f06b423b5
child 19245 210756fcb1f3
#OTHER class: Fraction changed: #readFrom:onError: (send #peekOrNil instead of #peek)
Fraction.st
--- a/Fraction.st	Tue Feb 23 00:19:45 2016 +0100
+++ b/Fraction.st	Tue Feb 23 00:22:09 2016 +0100
@@ -184,14 +184,14 @@
 
     s := aStringOrStream readStream.
     s skipSeparators.
-    s peek == $( ifTrue:[
+    s peekOrNil == $( ifTrue:[
         s next.
     ].
 
     numerator := super readFrom:s onError:[^ exceptionBlock value].
     numerator isInteger ifTrue:[
         s skipSeparators.
-        (s peek == $/) ifTrue:[
+        (s peekOrNil == $/) ifTrue:[
             s next.
             denominator := Integer readFrom:s onError:[^ exceptionBlock value].
             ^ self numerator:numerator denominator:denominator