← Commit list

9a0c404d5

Denys Vlasenko
Denys Vlasenko
2019-10-25
SUCCESS Duration: 157s

Subject

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

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

editors/vi.c+1 -1
@@ -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
}