console: avoid promotion to signed int
authorDavid Tardon <dtardon@redhat.com>
Wed, 3 Oct 2018 10:48:58 +0000 (12:48 +0200)
committerDavid Tardon <dtardon@redhat.com>
Fri, 12 Oct 2018 10:38:41 +0000 (12:38 +0200)
commitde699c7a06797618c008ad3ca13bab34186298bc
tree87524bf820d5383863da1551645cdc3aaa0d6d19
parent3118a4cf17fa941bfe1058481369edbd17ff1660
console: avoid promotion to signed int

coverity message:
sign_extension: Suspicious implicit sign extension: "keydata.Key.ScanCode" with type "UINT16" (16 bits, unsigned) is promoted in "keydata.Key.ScanCode << 16" to type "int" (32 bits, signed), then sign-extended to type "unsigned long" (64 bits, unsigned).  If "keydata.Key.ScanCode << 16" is greater than 0x7FFFFFFF, the upper bits of the result will all be 1.
src/boot/efi/console.h