avoid Asan runtime error: shift exponent -1 is negative

Authored by jtamate on Apr 4 2018, 5:42 PM.

Description

avoid Asan runtime error: shift exponent -1 is negative

Summary:
Avoid doing a 1<<-1.

Test Plan:
Before: frameworks/ktexteditor/src/completion/katecompletionconfig.cpp:195:33: runtime error: shift exponent -1 is negative
after: silence

Reviewers: Kate, Frameworks, mwolff

Reviewed By: Kate, mwolff

Subscribers: mwolff, brauch

Tags: Kate, Frameworks

Differential Revision: https://phabricator.kde.org/D11811

Details

Committed
jtamateApr 4 2018, 5:43 PM
Reviewer
Kate
Differential Revision
D11811: avoid Asan runtime error: shift exponent -1 is negative
Parents
R39:0b28572a67c2: We depend against 5.8.0
Branches
Unknown
Tags
Unknown