Skip to content

Commit

Permalink
Merge pull request opencv#23484 from AleksandrPanov:fix_warnings_quirc
Browse files Browse the repository at this point in the history
  • Loading branch information
alalek committed Apr 12, 2023
2 parents 097891e + 1a5820a commit 24387c2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions 3rdparty/quirc/src/decode.c
Original file line number Diff line number Diff line change
Expand Up @@ -920,10 +920,14 @@ quirc_decode_error_t quirc_decode(const struct quirc_code *code,

void quirc_flip(struct quirc_code *code)
{
struct quirc_code flipped = {0};
struct quirc_code flipped;
unsigned int offset = 0;
for (int y = 0; y < code->size; y++) {
for (int x = 0; x < code->size; x++) {
int y;
int x;

memset(&flipped, 0, sizeof(flipped));
for (y = 0; y < code->size; y++) {
for (x = 0; x < code->size; x++) {
if (grid_bit(code, y, x)) {
flipped.cell_bitmap[offset >> 3u] |= (1u << (offset & 7u));
}
Expand Down

0 comments on commit 24387c2

Please sign in to comment.