Skip to content

[IMF] Use correct delete syntax, and remove warnings seen in Appveyor Visual Studio 12 build.#232

Merged
mywave82 merged 2 commits into
adplug:masterfrom
mywave82:imf-delete
Aug 7, 2024
Merged

[IMF] Use correct delete syntax, and remove warnings seen in Appveyor Visual Studio 12 build.#232
mywave82 merged 2 commits into
adplug:masterfrom
mywave82:imf-delete

Conversation

@mywave82

@mywave82 mywave82 commented Aug 5, 2024

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread src/imf.cpp

// file validation section
size_t hdr_size = 0;
unsigned long hdr_size = 0;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What's wrong with using size_t? I always thought this unit is used for such cases

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If it's mixed with unsigned long in other places, it's better to fix those.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

size_t is either a int or long, depending on compiler environment and defines before including lib-c header files, and is mostly only used by libc in the fileoperations; libbinio uses unsigned long, so no need to use size_t anyway in this use-case.

@mywave82 mywave82 merged commit 6f57671 into adplug:master Aug 7, 2024
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