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

%ld used instead of %lld in chunk.c #1255

Closed
patlefort opened this issue Apr 11, 2022 · 2 comments
Closed

%ld used instead of %lld in chunk.c #1255

patlefort opened this issue Apr 11, 2022 · 2 comments

Comments

@patlefort
Copy link
Contributor

Minor problem:

src/lib/OpenEXRCore/chunk.c:350:86: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘int64_t’ {aka ‘long long int’} [-Wformat=]
  350 |                 "Invalid chunk size reconstructing chunk table: found out of range %ld",
      |                                                                                    ~~^
      |                                                                                      |
      |                                                                                      long int
      |                                                                                    %lld
  351 |                 leaderdata->deep_data[1]);
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~
      |                                      |
      |                                      int64_t {aka long long int}
@kmilos
Copy link

kmilos commented Apr 22, 2022

This is platform dependent, so for portability it is best to use the inttypes.h print format macros (PRId64 in this case).

@cary-ilm
Copy link
Member

Should be resolved by #1287

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

No branches or pull requests

3 participants