Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/ComputeCxx/Swift/ContextDescriptor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ uint64_t class_type_descriptor::immediate_members_offset() const {
uint64_t class_type_descriptor::field_offset_vector_offset() const {
// FieldOffsetVectorOffset is a private field,
// but we know comes directly after Numfields which is a uint32_t
uint32_t offset = *(&_base.NumFields + sizeof(uint32_t));
uint32_t offset = *(reinterpret_cast<const char *>(&_base.NumFields) + sizeof(uint32_t));

if (base()->hasResilientSuperclass()) {
return immediate_members_offset() + offset;
Expand Down
2 changes: 1 addition & 1 deletion Xcode/Configs/Compute.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ USE_HEADERMAP = NO
CODE_SIGN_STYLE = Automatic

CURRENT_PROJECT_VERSION = 1
MARKETING_VERSION = 0.4.0
MARKETING_VERSION = 0.4.1

ENABLE_MODULE_VERIFIER = YES
MODULE_VERIFIER_SUPPORTED_LANGUAGES = objective-c objective-c++
Expand Down