Skip to content

Commit

Permalink
BLOBNBOX: Declare signed bit field
Browse files Browse the repository at this point in the history
This fixes a warning from LGTM:

    Bit field area of type int should have explicitly unsigned integral,
    explicitly signed integral, or enumeration type.

Maybe area should be unsigned, but that would require lots of other
changes, so for now signedness is not changed.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed Oct 19, 2018
1 parent d9c472b commit 830b9c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ccstruct/blobbox.h
Expand Up @@ -519,7 +519,7 @@ class BLOBNBOX:public ELIST_LINK
C_BLOB *cblob_ptr; // edgestep blob
TBOX box; // bounding box
TBOX red_box; // bounding box
int area:30; // enclosed area
signed int area:30; // enclosed area
unsigned joined : 1; // joined to prev
unsigned reduced : 1; // reduced box set
int repeated_set_; // id of the set of repeated blobs
Expand Down

0 comments on commit 830b9c7

Please sign in to comment.