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

printing int64 on different archs #293

Closed
wants to merge 1 commit into from
Closed

printing int64 on different archs #293

wants to merge 1 commit into from

Conversation

gnat42
Copy link

@gnat42 gnat42 commented Jan 8, 2016

There are warnings about size mis-matches. Including inttypes.h and using the constant fixes the issue so that the print format is the same regardless of x86_64 or i686.

@kr kr closed this in 8a5665a Apr 3, 2016
@kr
Copy link
Member

kr commented Apr 3, 2016

Thanks! This has actually been fixed in the upstream source of ct. The best way to fix this is to update to the newest version.

@sergeyklay
Copy link
Member

@kr How about release new version?

Copy link
Contributor

@pprindeville pprindeville left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@JensRantil
Copy link
Contributor

How about release new version?

@sergeyklay Please track #383.

@@ -14,6 +14,7 @@
#include <errno.h>
#include <sys/time.h>
#include <stdint.h>
#include <inttypes.h>
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor comment. I'd add something like:

#ifndef PRId64
#error "Need definition for PRId64 but not provided by <stdint.h>"
#endif

Copy link
Contributor

Choose a reason for hiding this comment

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

Oops, missed that a similar fix was merged as part of a different commit...

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.

None yet

5 participants