-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Removed integer suffixes in libsyntax crate #32179
Conversation
@steveklabnik pls take a look. I intended to do clean up per crate. I hope that is Ok, rather than one gigantic PR. what say? |
@bors: r+ rollup Per crate is fine, it's easy to roll them up 😄 |
📌 Commit bf50bd4 has been approved by |
…steveklabnik Removed integer suffixes in libsyntax crate
@@ -663,7 +663,7 @@ fn stderr_isatty() -> bool { | |||
type DWORD = u32; | |||
type BOOL = i32; | |||
type HANDLE = *mut u8; | |||
const STD_ERROR_HANDLE: DWORD = -12i32 as DWORD; | |||
const STD_ERROR_HANDLE: DWORD = -12 as DWORD; |
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.
This suffix is necessary since DWORD
is unsigned on windows. (or, I think that's the reason)
cc @retep998
http://buildbot.rust-lang.org/builders/auto-win-msvc-64-opt/builds/3376/steps/compile/logs/stdio
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.
Yep, DWORD
is u32
so the type has to be specified as i32
in order to specify a negative value and then cast to DWORD
.
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.
@bors r=steveklabnik |
📌 Commit b308ed0 has been approved by |
…steveklabnik Removed integer suffixes in libsyntax crate
…steveklabnik Removed integer suffixes in libsyntax crate
No description provided.