-
-
Notifications
You must be signed in to change notification settings - Fork 422
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 more sdktools crash on 64 bits #2152
Conversation
is there still - 4 to get IClient? |
I did grep "+ 4" and "- 4" in the sdktools directory. I did not check any other directory. |
While I understand it seems to be the same in practice, |
Any particular reason why? Most of the code itself is already using |
Which is obviously correct for the math, but the spec only appears to guarantee |
We don't need to have a long discussion about this. If you want to change it to void* for a hypothetical architecture where the fastest integer type is somehow larger than the pointer type, it doesn't matter to me. I just want these crashes gone. |
static_assert() that your intention is true and move on, I say. |
Found some more pointer arithmetic in sdktools assuming 32bits.