-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Swift 5.9 warning #4687
base: develop
Are you sure you want to change the base?
Fix Swift 5.9 warning #4687
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't merge this yet. The changes here should be as follows:
- Constrain to
FixedWidthInteger
. - Add an overload for
Double
. - Figure out what we need to do to serialize
timespec
correctly and in a backwards-compatible manner.
When BitwiseCopyable
is available, we should migrate to that.
468c149
to
889fe0e
Compare
@saagarjha alright, put a little bit more effort into it... The documentation for Not sure if I got your whole point in (3). Looks like Didn't dive in to the written files with a hex editor; just did spot testing. Thumbnail generation & Date Last Opened updates seemed to work fine before this, and seem to work fine after. |
What value were you trying this on? The two should be consistent in their results. The problem with serializing |
Well...I guess I was wrong... I could have sworn I saw the debugger showing Did not learn until now that Apple's ARM is little-endian. And found here that |
Pinging @saagarjha: this is still marked as "changes requested" but should be ready to go. Please let me know of any concerns which are blocking this. |
Well my point was we should serialize timespec's members and not just try to splat its contents directly. |
889fe0e
to
6de1998
Compare
6de1998
to
19b8e53
Compare
I dug into this some more and I don't see why breaking apart the The only case where this field is being used is to (comments) |
Description:
See comments below