[PATCH] diff: fix a sparse 'dubious one-bit signed bitfield' error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Ramsay Jones <ramsay@xxxxxxxxxxxxxxxxxxxx>
---

Hi Stefan,

If you need to re-roll your 'sb/diff-color-move-more' branch, could
you please squash this into the relevant patch (commit f2d78d2c67,
"diff.c: add white space mode to move detection that allows indent
changes", 2018-06-21).

Thanks!

ATB,
Ramsay Jones

 diff.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/diff.c b/diff.c
index c91480141..652521ff2 100644
--- a/diff.c
+++ b/diff.c
@@ -756,7 +756,7 @@ struct moved_entry {
  */
 struct ws_delta {
 	char *string;
-	int current_longer : 1;
+	unsigned int current_longer : 1;
 };
 #define WS_DELTA_INIT { NULL, 0 }
 
-- 
2.18.0



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux