Comparaison of CompiledCode with =
By Gwenael Casaccio - Posted on June 12th, 2009
Tagged: 3.1 (and 3.0.x)
| Project: | GNU Smalltalk |
| Component: | Base classes |
| Category: | bug |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | fixed |
Description
In CompiledCode>>#= you try to compare the literals but the compared method may be has less or no literals than the, and this is the same for the byte code.
Fix : simply check if the number of literals and byte code are equals
self numLiterals = aMethod literals ifFalse: [^false].
self numBytecodes = aMethod numBytecodes ifFalse: [^false].
Updates
#1 submitted by Paolo Bonzini on Fri, 06/12/2009 - 10:55
| Status: | active | » fixed |
Thanks, committed as 0b80d44.
