Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0006879 [Squeak] Graphics minor always 01-31-08 23:54 01-31-08 23:54
Reporter nicolas cellier View Status public  
Assigned To andreas
Priority normal Resolution open  
Status assigned   Product Version 3.10
Summary 0006879: Form>>#readOn: is pedantic with depth
Description Browsing senders of isPowerOfTwo, found this one...

It insists on the depth being a power of two.
Why? A depth 7 is rare but seems to work well...
Additional Information
| b f0 f1 |
b := (ByteArray new: 1024) writeStream.
f0 := Form extent: 16@16 depth: 7.
f0 writeOn: b.
(f1 := Form new) readFrom: b contents readStream.
self assert: f1 bits = f0 bits

"... cannot assert f1=f0, only true when =="
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
01-31-08 23:54 nicolas cellier New Issue
01-31-08 23:54 nicolas cellier Status new => assigned
01-31-08 23:54 nicolas cellier Assigned To  => andreas


Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
30 total queries executed.
27 unique queries executed.
Powered by Mantis Bugtracker