Avoid doing a 1<<-1.
Details
Details
- Reviewers
mwolff - Group Reviewers
Kate Frameworks - Commits
- R39:3e8bbe0ad838: avoid Asan runtime error: shift exponent -1 is negative
Before: frameworks/ktexteditor/src/completion/katecompletionconfig.cpp:195:33: runtime error: shift exponent -1 is negative
after: silence
Diff Detail
Diff Detail
- Repository
- R39 KTextEditor
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
Change looks good (the previous code definitely looks like nonsense), but what does this mean for existing settings, saved previously?
Comment Actions
maybe instead make it explicit what the old code did instead? i.e. check what you get from GCC for "1 << -1" and then use that when i == 0