Skip to content

Bug: MacOS compilation failed. implicit conversion loses integer precision #5641

Closed

Description

@fuchenyang01

/Users/runner/work/Nullus/Nullus/ThirdParty/assimp/contrib/zip/src/zip.c:470:49: error: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'mz_uint' (aka 'unsigned int') [-Werror,-Wshorten-64-to-32]
if (!mz_zip_reader_file_stat(&zip->archive, i, &file_stat)) {
~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/runner/work/Nullus/Nullus/ThirdParty/assimp/contrib/zip/src/zip.c:527:49: error: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'mz_uint' (aka 'unsigned int') [-Werror,-Wshorten-64-to-32]
if (!mz_zip_reader_file_stat(&zip->archive, i, &file_stat)) {
~~~~~~~~~~~~~~~~~~~~~~~ ^
2 errors generated.

Activity

  1. added
    Bug
    on Jun 28, 2024
  2. added
    Build
    on Jul 2, 2024
  3. omgkitty commented on Sep 10, 2024

    @omgkitty

    C style cast it to size_t.

  4. tellypresence commented on Apr 15, 2025

    @tellypresence
    Collaborator

    @fuchenyang01 Is this still a problem?

  5. tellypresence commented on Apr 17, 2025

    @tellypresence
    Collaborator

    Closing old build problem report

  6. added a commit that references this issue on Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugBuild

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions