fixed undefined signed integer overflow for expression "1 << 31"
authorHolger Schemel <holger.schemel@virtion.de>
Thu, 20 Oct 2022 15:35:49 +0000 (17:35 +0200)
committerHolger Schemel <holger.schemel@virtion.de>
Thu, 20 Oct 2022 15:39:07 +0000 (17:39 +0200)
commit13fc9c40050cdd760fd457a9c83d0611f95fcd1e
treeccb58d04e431ee6555cd9f19ef5d72f04ecc3be0
parentdfb50dc0bd7586c343a8cd16008644dceda92adf
fixed undefined signed integer overflow for expression "1 << 31"

This issue was found by Cppcheck (static C/C++ code analysis tool)
and by using Clang with option "-fsanitize=undefined".
src/editor.c
src/files.c
src/main.h
src/tape.h