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 comparison bugs in SQ code decoder #10

Merged
merged 2 commits into from
Feb 5, 2019
Merged

Conversation

jasp00
Copy link

@jasp00 jasp00 commented Feb 5, 2019

I have fixed all comparison warnings that were revealed when compiling with -Wextra. Infinite loops should not happen. Tested with examples/*.png, /usr/share/icons/Adwaita/96x96/status/*.png, and one PDF.

Closes #8.

Javier Serrano Polo added 2 commits February 5, 2019 04:28
Compiling with -Wextra shows:

  warning: comparison of integer expressions of different signedness

The fix from "Fix integer promotion bug" is not enough. Scanning other
barcode formats unveils more comparison bugs. Thus, fix all comparison
warnings in the SQ code decoder.

Signed-off-by: Javier Serrano Polo <javier@jasp.net>
SQ code is not listed as a supported symbology. Thus, fix the warning
message.

Signed-off-by: Javier Serrano Polo <javier@jasp.net>
@mchehab mchehab merged commit fa177fe into mchehab:master Feb 5, 2019
@mchehab
Copy link
Owner

mchehab commented Feb 5, 2019

Indeed it seems that the problems seem to be solved.
I guess we can change the default to compile with sqcode again. I would keep the warning that this is experimental for a while, as others might experience other problems.

@jasp00 jasp00 deleted the sqcode branch February 6, 2019 02:42
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.

SQ code currently loops forever with some images
2 participants