Skip to content

Add static asserts to Xfer to invoke extra caution if certain type si… #586

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

xezon
Copy link
Collaborator

@xezon xezon commented Feb 18, 2022

…zes suddenly deviate from the norm

@xezon xezon force-pushed the remove-c-casts-07-xfer branch 2 times, most recently from f5f7655 to 9706cbf Compare February 19, 2022 12:06
@@ -2970,7 +2970,6 @@ void W3DModelDraw::Xfer_Snapshot(Xfer *xfer)
if (anim) {
float frame;
int frames;
int mode;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like an error. int mode was shadowing the serialized mode from above.

@xezon xezon force-pushed the remove-c-casts-07-xfer branch 2 times, most recently from f6cfc19 to 1889dca Compare February 19, 2022 12:11
@duncanspumpkin
Copy link
Contributor

Instead of having only some using the correct size types I propose we just switch the codebase in full one type at a time it will lead to more consistent code #606

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants