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

Replace Tesseract's format macros by standard macros and fix some related issues #905

Merged
merged 6 commits into from
May 11, 2017

Conversation

stweil
Copy link
Member

@stweil stweil commented May 11, 2017

No description provided.

stweil added 6 commits May 11, 2017 19:30
There exist standard macro definitions for the printf format specifiers.
MS Visual Studio does not support that standard (at least not in older
versions), so local definitions are needed there.

Signed-off-by: Stefan Weil <[email protected]>
The size() method returns a size_type value which is an unsigned type.
As there is no portable format string for that type, a type cast is needed.

Fix also several signed / unsigned mismatches which resulted in compiler
warnings.

Signed-off-by: Stefan Weil <[email protected]>
@zdenop zdenop merged commit 8b65bb3 into tesseract-ocr:master May 11, 2017
@stweil stweil deleted the formatstring branch May 11, 2017 17:44
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.

2 participants