git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Ramsay Jones <ramsay@ramsayjones.plus.com>
Date
Jun 23, 2018, 13:20 UTC
Message-ID
<1f29f275-1cc9-e082-bac4-6eb9e9e08484@ramsayjones.plus.com>
Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
---
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
Message 1 of 1 in “diff: fix a sparse 'dubious one-bit signed bitfield' error”
  1. diff: fix a sparse 'dubious one-bit signed bitfield' errorRamsay Jones, Jun 23, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.