[macruby-changes] [MacRuby/MacRuby] ecc13e: fix a bug in respond_to_key which cannot generate ...
GitHub
noreply at github.com
Sun Mar 10 15:38:00 PDT 2013
Branch: refs/heads/master
Home: https://github.com/MacRuby/MacRuby
Commit: ecc13e2c2c01c2554cce3b00809c082f73d498d9
https://github.com/MacRuby/MacRuby/commit/ecc13e2c2c01c2554cce3b00809c082f73d498d9
Author: Watson <watson1978 at gmail.com>
Date: 2013-03-10 (Sun, 10 Mar 2013)
Changed paths:
M vm.h
Log Message:
-----------
fix a bug in respond_to_key which cannot generate a unique key for different klass and sel
The same key is generated in the following two cases.
1. klass = 0xfd085b0
sel = 0xfd3cf90
(0xfd085b0 + 0xfd3cf90 -> 0x1FA45540)
2. klass = 0xfd085d0
sel = 0xfd3cf70
(0xfd085d0 + 0xfd3cf70 -> 0x1FA45540)
=> generated key = 1068693925
Object#respond_to? is not working as expected, because the keys that are not unique.
More information about the macruby-changes
mailing list