Skip to content
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 Compiler Warnings + Minor Corrections + OpenDIS7 build target #31

Merged
merged 8 commits into from
Oct 10, 2019

Conversation

rodneyp290
Copy link
Contributor

@rodneyp290 rodneyp290 commented Oct 4, 2019

This pull request addresses compiler warnings discussed in issue #29, and the pull request #30.
The warnings were predominately caused by the use of char instead of unsigned char, and int instead unsigned long (int).

While making these changes, I compared at the sizes of char, int, long, and long long, using two different compilers (GCC, and MSVC) and found that long varied between 32 bits and 64 bits depending on the compiler. Because of this discrepancy I replaced all longs with long longs, and checked against the DIS standard to confirm altered attributes required 64 bit integers.
These check in turn resulted in some minor corrections of the DIS7 AttachedParts, & ArticulatedParts Classes; and I think the Attribute class still needs corrections that I'll raise an issue for.

Additionally, it adds a build target entry for OpenDIS7 to the premake5 file, and addresses issues #6, to create a successful compile of the DIS 7 code.

@leif81 leif81 merged commit fab3de4 into open-dis:master Oct 10, 2019
@leif81
Copy link
Member

leif81 commented Oct 10, 2019

Thank-you @rodneyp290!

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

Successfully merging this pull request may close these issues.

2 participants