X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/991b6704bf8dc20fc262d2b94e6f8c2f6ce6a5d8..d2743081b16406a557258a8615905b360c59b96b:/ObjectiveC/Library.mm?ds=sidebyside diff --git a/ObjectiveC/Library.mm b/ObjectiveC/Library.mm index 4eec80b..c486fed 100644 --- a/ObjectiveC/Library.mm +++ b/ObjectiveC/Library.mm @@ -2086,7 +2086,7 @@ static JSValueRef Internal_getProperty(JSContextRef context, JSObjectRef object, uintptr_t mask((1 << length) - 1); return CYCastJSValue(context, (field >> shift) & mask); } else { - auto type(new(pool) Type_privateData(ivar_getTypeEncoding(ivar))); + auto type(new(pool) Type_privateData(encoding)); return CYFromFFI(context, type->type_, type->GetFFI(), data); } }