[git commit] vi: placate "warning: shifting a negative signed value is undefined"

Denys Vlasenko vda.linux at googlemail.com
Fri Oct 25 15:42:23 UTC 2019


commit: https://git.busybox.net/busybox/commit/?id=9a0c404d5f71f1592c6eaeb9119abc6e3756e525
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 editors/vi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/editors/vi.c b/editors/vi.c
index f8fab7028..51dfc1209 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -3490,7 +3490,7 @@ static void do_cmd(int c)
 		} while (--cmdcnt > 0);
 		break;
 	case '{':			// {- move backward paragraph
-		q = char_search(dot, "\n\n", (BACK << 1) | FULL);
+		q = char_search(dot, "\n\n", ((unsigned)BACK << 1) | FULL);
 		if (q != NULL) {	// found blank line
 			dot = next_line(q);	// move to next blank line
 		}


More information about the busybox-cvs mailing list