[FIX] IntegerFromBytesFix-sr

Stephan Rudlof squeak-dev at lists.squeakfoundation.org
Thu Sep 5 10:24:26 UTC 2002


This is a multi-part message in MIME format.
--------------090800010806090701090500
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

"Change Set:		IntegerFromBytesFix-sr
Date:
		2 September 2002
Author:
		Stephan Rudlof

Fixes a bug creating LargeIntegers, where they should be SmallIntegers.
Probably not detected before, since LargeIntegers are normalized frequently.
Try:

| val |
val _ SmallInteger maxVal.
{val. val + 1} collect:
	[:arg | (Integer
			byte1: (arg digitAt: 1)
			byte2: (arg digitAt: 2)
			byte3: (arg digitAt: 3)
			byte4: (arg digitAt: 4)) class].

before and after filing in."

Note: made with 3.2.
-- 
Stephan Rudlof (sr at evolgo.de)
   "Genius doesn't work on an assembly line basis.
    You can't simply say, 'Today I will be brilliant.'"
    -- Kirk, "The Ultimate Computer", stardate 4731.3

--------------090800010806090701090500
Content-Type: application/x-gunzip;
 name="IntegerFromBytesFix-sr.1.cs.gz"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
 filename="IntegerFromBytesFix-sr.1.cs.gz"

H4sIAAAAAAAAAGWSTU/bQBCGzz7sf3iTHhJUMLETIrB6oUWRWvWAGtQLArSOx/aqzq67XgNp
6X/v+CMJhEvGyjM7H+87o4U1ayx/1yR/Tf0QJkUQ4FtdbBBOJiFuC+mocqjLhD8ifJhdnM3v
YDTOsKTS0Tom26VKhyCMgvNoOke5Hg3E8EsudUac5yLP+6odZWQX3O/zhmsu1PNJZcVVU9bz
vPCgnLisXW5sg5aOSq6EH3VSmFQIfkkVJOI6w8qSdEpn+C5tRn2P6hhPOVmCy2mDKjd1kSDm
QdayKLY5Pq6tiWXMm2rjkJCjlaMmLzWWjlEpvaK3ZSG5pjaWy6g/nJpaYuG0Kza+uLGbSIgX
PMoCL6L5fXjTD2v5/FMWvvjLzG/TPiL4h5UpCm4cCe824l54wbh/IXj1mJUKIowbkqhMuUsX
ITjaovAQhTs0PUTTHZodotnREVaFrKo7X4huf0idQKaOB09V0QistD8cCCEG24XaF1gT25RU
C7YKI6UrJxvZOluMHoH/WJeMKouL0/C0vZRJEAVzPpB+uzag36cN6DdoA/qZ2wDhDa+oJJ00
M/EZ5irLT4xNeKAmgfUsN7yZZU3ZWaWd4Ut57eKx8Azn1opvoi4ZvnEpbu5Fpc1JDYXX2lkT
G9oJh08I5nY2gUpvbE1smnd7j3HHYuWWzVN2YdZozf6O+wV2JJi/JuErct6DVgz2wes6P3Sz
X5tKOfW43QGanti2XdbeSZS166V6T6d7On1Pwz0N39NgTwOm950yA/BJ/AfZm6qZRAQAAA==
--------------090800010806090701090500--




More information about the Squeak-dev mailing list