Skip to content

Commit 830b9c7

Browse files
committed
BLOBNBOX: Declare signed bit field
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 <[email protected]>
1 parent d9c472b commit 830b9c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ccstruct/blobbox.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ class BLOBNBOX:public ELIST_LINK
519519
C_BLOB *cblob_ptr; // edgestep blob
520520
TBOX box; // bounding box
521521
TBOX red_box; // bounding box
522-
int area:30; // enclosed area
522+
signed int area:30; // enclosed area
523523
unsigned joined : 1; // joined to prev
524524
unsigned reduced : 1; // reduced box set
525525
int repeated_set_; // id of the set of repeated blobs

0 commit comments

Comments
 (0)