Skip to content

Pointer arithmetic warnings #26

@jawdan-dev

Description

@jawdan-dev

const void* file = fileStart + header.m_infoStart;
for (uint32_t i = 0; i < header.m_fileCount; i++) {
const Internal::AssetPackage::Info& info = *reinterpret_cast<const Internal::AssetPackage::Info*>(file);
file += sizeof(info);
const char* const name = reinterpret_cast<const char*>(fileStart + info.m_nameStart);
FileInformation fileInformation;
fileInformation.m_info = &info;
fileInformation.m_data = fileStart + info.m_dataStart;

Metadata

Metadata

Assignees

No one assigned

    Labels

    cleanupNon-breaking issues that would be nicer to have cleaned up!

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions