[bug] Comparaison of CompiledCode with =

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[bug] Comparaison of CompiledCode with =

MrGwen
Issue status update for
http://smalltalk.gnu.org/node/315
Post a follow up:
http://smalltalk.gnu.org/project/comments/add/315

 Project:      GNU Smalltalk
 Version:      <none>
 Component:    Base classes
 Category:     bug reports
 Priority:     normal
 Assigned to:  Unassigned
 Reported by:  MrGwen
 Updated by:   MrGwen
 Status:       active

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].




_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: [bug] Comparaison of CompiledCode with =

Paolo Bonzini-3
Issue status update for
http://smalltalk.gnu.org/project/issue/315
Post a follow up:
http://smalltalk.gnu.org/project/comments/add/315

 Project:      GNU Smalltalk
 Version:      <none>
 Component:    Base classes
 Category:     bug reports
 Priority:     normal
 Assigned to:  Unassigned
 Reported by:  MrGwen
 Updated by:   bonzinip
-Status:       active
+Status:       fixed

Thanks, committed as 0b80d44.




_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk