OSDN Git Service

tci: Mask shift counts to avoid undefined behavior
authorRichard Henderson <rth@twiddle.net>
Tue, 18 Mar 2014 15:44:05 +0000 (08:44 -0700)
committerRichard Henderson <rth@twiddle.net>
Fri, 18 Apr 2014 23:57:36 +0000 (16:57 -0700)
commit1976cccec8a9965ff3fd6f026783a04f6b4959fd
tree5c9a19840b4caf88c32051ee6729d2acdf55bcf9
parent50c5c4d12557ede48c573e5138542061acd83500
tci: Mask shift counts to avoid undefined behavior

TCG now requires unspecified behavior rather than a potential crash,
bring the C shift within the letter of the law.

Signed-off-by: Richard Henderson <rth@twiddle.net>
tci.c