vi: placate "warning: shifting a negative signed value is undefined"
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 25 Oct 2019 15:42:23 +0000 (17:42 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 25 Oct 2019 15:42:23 +0000 (17:42 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
editors/vi.c

index f8fab7028801a529fc95711ef2a00ef141a2c851..51dfc120924b8f4826d3b340fad5b06e9b11d289 100644 (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
                }