Browse Source

vi: placate "warning: shifting a negative signed value is undefined"

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko 4 years ago
parent
commit
9a0c404d5f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      editors/vi.c

+ 1 - 1
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
 		}