gdbus-serialization test: don't left-shift a negative number
commit663e12feca1c45c19048c43f7f80f2509a3fadba
authorSimon McVittie <smcv@debian.org>
Fri, 2 Dec 2016 10:06:23 +0000 (2 10:06 +0000)
committerSimon McVittie <smcv@debian.org>
Fri, 2 Dec 2016 19:10:41 +0000 (2 19:10 +0000)
treea2065479ab104437ff22d678052dbbecae4546e2
parente5ed410c8c0fe823883b65b293fb2d9c9d12673a
gdbus-serialization test: don't left-shift a negative number

-2LL<<34 is undefined, because left-shifting a negative number is
undefined (it was implementation-defined behaviour in C99, but
is formally undefined in C11). The undefined behaviour sanitizer
picks this up.

Signed-off-by: Simon McVittie <smcv@debian.org>
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=775510
Reviewed-by: Colin Walters
gio/tests/gdbus-serialization.c