mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Fix Alignment of Hashed Structs (#287)
* Fix alignment of ASImageNodeContentsKey struct to fix hashing * Change the change log by logging a change * Add the world's stupidest explicit cast * Actually its simpler
This commit is contained in:
@@ -24,6 +24,8 @@ NSString *const ASTextKitEntityAttributeName = @"ck_entity";
|
||||
|
||||
size_t ASTextKitAttributes::hash() const
|
||||
{
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic warning "-Wpadded"
|
||||
struct {
|
||||
NSUInteger attrStringHash;
|
||||
NSUInteger truncationStringHash;
|
||||
@@ -35,6 +37,7 @@ size_t ASTextKitAttributes::hash() const
|
||||
NSUInteger shadowColorHash;
|
||||
CGFloat shadowOpacity;
|
||||
CGFloat shadowRadius;
|
||||
#pragma clang diagnostic pop
|
||||
} data = {
|
||||
[attributedString hash],
|
||||
[truncationAttributedString hash],
|
||||
|
||||
Reference in New Issue
Block a user