Tweak.
authorTony Garnock-Jones <tonygarnockjones@gmail.com>
Tue, 07 Aug 2018 17:18:20 +0100
changeset 437 f3b04d3ef973
parent 436 f519b01f759b
child 438 1fe179d53161
Tweak.
experiments/little-smalltalk/run.cc
--- a/experiments/little-smalltalk/run.cc	Tue Aug 07 17:14:14 2018 +0100
+++ b/experiments/little-smalltalk/run.cc	Tue Aug 07 17:18:20 2018 +0100
@@ -573,7 +573,7 @@
     // cerr << "Sending " << bvString(_j) << " via " << className(c) << " to ";
     // print(cerr, slotAt(_i, 0));
     // cerr << endl;
-    unsigned probe = ((((intptr_t) c) * 5 + ((intptr_t) _j)) % methodCacheCount) * 3;
+    unsigned probe = ((((intptr_t) c >> 3) * 5 + ((intptr_t) _j >> 3)) % methodCacheCount) * 3;
     obj method;
     if ((methodCache[probe] == c) && (methodCache[probe + 1] == _j)) {
       method = methodCache[probe + 2];