Message ID | 20200226201243.86988-6-morbo@google.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Fixes for clang builds | expand |
diff --git a/x86/svm.c b/x86/svm.c index ae85194..17be4b0 100644 --- a/x86/svm.c +++ b/x86/svm.c @@ -1148,7 +1148,7 @@ static bool npt_rw_l1mmio_check(struct test *test) } #define TSC_ADJUST_VALUE (1ll << 32) -#define TSC_OFFSET_VALUE (-1ll << 48) +#define TSC_OFFSET_VALUE (~0ull << 48) static bool ok; static void tsc_adjust_prepare(struct test *test)
Shifting a negative signed value is undefined. Use a shift of an unsigned value instead. Signed-off-by: Bill Wendling <morbo@google.com> --- x86/svm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)