From 830b9c715a88dd6caecf9c265bbce432b9203f23 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Fri, 19 Oct 2018 10:30:05 +0200 Subject: [PATCH] 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 --- src/ccstruct/blobbox.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ccstruct/blobbox.h b/src/ccstruct/blobbox.h index 03c53f62..d7e13ff5 100644 --- a/src/ccstruct/blobbox.h +++ b/src/ccstruct/blobbox.h @@ -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