Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mikmart
Copy link

@mikmart mikmart commented Aug 25, 2025

.. on Windows %ld expects 32 bits but ptrdiff_t is 64 bits.

Fixes the following warning when compiled with MSVC:

C:\Users\mikko\git\jim\jimp.h(277): warning C4477: 'fprintf' : format string '%ld' requires an argument of type 'long', but variadic argument 3 has type '__int64'
C:\Users\mikko\git\jim\jimp.h(277): note: consider using '%lld' in the format string
C:\Users\mikko\git\jim\jimp.h(277): note: consider using '%Id' in the format string
C:\Users\mikko\git\jim\jimp.h(277): note: consider using '%I64d' in the format string

Discovered when compiling the B compiler, thought it'd be best to contribute upstream.

.. on Windows %ld expects 32 bits but ptrdiff_t is 64 bits.
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

Successfully merging this pull request may close these issues.

1 participant