mirror of
https://github.com/corda/corda.git
synced 2025-06-17 06:38:21 +00:00
add stronger typing to code.singleton
This commit is contained in:
committed by
Joshua Warner
parent
4754a92b75
commit
9248f8f8ad
@ -2106,7 +2106,7 @@ interpret3(Thread* t, const int base)
|
||||
index = codeReadInt16(t, code, ip);
|
||||
}
|
||||
|
||||
GcSingleton* pool = cast<GcSingleton>(t, codePool(t, code));
|
||||
GcSingleton* pool = codePool(t, code);
|
||||
|
||||
if (singletonIsObject(t, pool, index - 1)) {
|
||||
object v = singletonObject(t, pool, index - 1);
|
||||
@ -2128,7 +2128,7 @@ interpret3(Thread* t, const int base)
|
||||
case ldc2_w: {
|
||||
uint16_t index = codeReadInt16(t, code, ip);
|
||||
|
||||
GcSingleton* pool = cast<GcSingleton>(t, codePool(t, code));
|
||||
GcSingleton* pool = codePool(t, code);
|
||||
|
||||
uint64_t v;
|
||||
memcpy(&v, &singletonValue(t, pool, index - 1), 8);
|
||||
|
Reference in New Issue
Block a user