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

fix printf formats for 64 bit values #483

Merged
merged 1 commit into from Oct 30, 2015

Conversation

alex85k
Copy link
Contributor

@alex85k alex85k commented Oct 29, 2015

Tried to fix #468 . Is this correct?

@alex85k
Copy link
Contributor Author

alex85k commented Oct 29, 2015

Incorrect. Fixing :)

@alex85k alex85k force-pushed the fix-printf branch 3 times, most recently from c48166a to 6c6f28c Compare October 29, 2015 12:05
@alex85k
Copy link
Contributor Author

alex85k commented Oct 29, 2015

Strange. Travis does not build it at all...
It does not see new branches or updates.

@alex85k alex85k force-pushed the fix-printf branch 3 times, most recently from 9fc3a2e to 6813dda Compare October 29, 2015 12:39
@alex85k
Copy link
Contributor Author

alex85k commented Oct 29, 2015

Seems to pass checks now. Also enabled -Werror on MacOS (Travis only)

@pnorman
Copy link
Collaborator

pnorman commented Oct 29, 2015

boost::format has bad performance (#398) but all these fprintfs are only run once. I'd be okay with changing these to boost::format, which I believe would avoid the formatting string issues completely.

We still need to find a logging library (#202), but just printing to stderr like before is good enough for now.

@pnorman
Copy link
Collaborator

pnorman commented Oct 30, 2015

Merging, and I'll look at doing a backport for 0.88.x. Pulling out fprintf can wait.

pnorman added a commit that referenced this pull request Oct 30, 2015
fix printf formats for 64 bit values
@pnorman pnorman merged commit 8b69f01 into osm2pgsql-dev:master Oct 30, 2015
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 6813dda on alex85k:fix-printf into ** on openstreetmap:master**.

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.

Funny output for empty changeset
3 participants