-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
fixes #23442, fix for FileId under Windows #23444
Conversation
`openDefaultBrowser()` failed to match its desired functionality What's more, meaningless and unworthy to fix it
rename `openDefaultBrowserImplPrep` to `openDefaultBrowserRaw` and remove unnecessary `openDefaultBrowserImpl`
…ving and rewrite its document accordingly.
"specifical" is a non-standard variation of "specific" Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com>
add `import std/private/since`
A solution to maintain compatibility is to use |
Then, ... for cases like #23442, user will just get a overflowed negative integer |
Unfortunately, to avoid possible breakages, it's better to keep int64 and use cast. But it's just my opinion. |
According to my research described in #23442 (comment), the type wrapped is unsigned, either in Windows or POSIX. (and this fix only affect windows) Thus, there won't be any breakage, I think. |
It's a breaking change, keep the type and use |
... then this issue is not handled, it just slience the overflow error, resulting in a negative value. What if another issue comes out, saying |
Publically, this fix does not affect public API; Innerly, this fix just strips some unnecessary overflow check1 as When it comes to Footnotes
|
How could this happen? It's just a 64 bit number either way. |
In the original issue #23442, this would happen, where a if just using |
That's something like... |
In fact, using cast[int64] solves the problem, as the bit arrangement does not change anything. Switching to uint64 will be a breaking change. If the intention is to correct the WINAPI definitions (which have a lot of divergences), I believe that a single breaking change is better than making several breaking changes over time. |
Yeah, I do know the cast doesn't touch memory reperesentation... So, we just have to reply to the original issue: "do not feel confused if you got a negative value. You can cast it back to uint64 to get its real representation"? |
no need for any explanation, since |
Add generic param for merge template
ping @Araq , |
Sorry for the delay, pining me was the right thing to do. |
Thanks for your hard work on this PR! Hint: mm: orc; opt: speed; options: -d:release |
See according issue: Details: <#23442 (comment)> --------- Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de> (cherry picked from commit 6cc783f)
See according issue:
Details:
#23442 (comment)