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

Compatibility additions #6

Merged
merged 3 commits into from
Jan 8, 2019

Conversation

DavidCodesDev
Copy link
Contributor

Added #include because the std's don't work without (no idea how it worked without the include on your end? But on my end it didn't work without it). And changed to uint32_t :)

Fixed a string error and switched to uint32_t
Copy link
Owner

@eXpl0it3r eXpl0it3r left a comment

Choose a reason for hiding this comment

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

You need to include the C++ header cstdint instead of the C header stdint.h to get the std:: prefix.

bnkextr.cpp Outdated
@@ -47,6 +47,8 @@ ENVS
#include <fstream>
#include <iostream>
#include <vector>
#include <string>
#include <stdint.h>
Copy link
Owner

Choose a reason for hiding this comment

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

Can you use <cstdint> instead?

bnkextr.cpp Outdated
@@ -56,14 +58,14 @@ struct Index
{
int unknown;
int offset;
unsigned int size;
uint32_t size;
Copy link
Owner

Choose a reason for hiding this comment

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

I'd go with std::uint32_t. Can you also use std::int32_t for the two ints above?

bnkextr.cpp Outdated
};

#pragma pack(push, 1)
struct Section
{
char sign[4];
unsigned int size;
uint32_t size;
Copy link
Owner

Choose a reason for hiding this comment

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

Again std:: please 🙂

@eXpl0it3r eXpl0it3r merged commit ac29d5f into eXpl0it3r:master Jan 8, 2019
@eXpl0it3r eXpl0it3r added the bug label Jan 8, 2019
@DavidCodesDev DavidCodesDev deleted the Compatibility-additions branch April 15, 2020 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants