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

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2019-10-25 17:42:23 +02:00
parent f39a71817e
commit 9a0c404d5f

View File

@ -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
}