X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Ftstodr.c;h=3f6fecd9c2ad5600a7312663e5154a94602a67e9;hb=0988d80d70a06b9694664141f7068966d91caf3d;hp=3d722ed142cf28a8977bdd20961f54abe6f7adc2;hpb=7acd2f2e64ad017d39c4aeb9c96882db1639d1d9;p=yaz-moved-to-github.git diff --git a/test/tstodr.c b/test/tstodr.c index 3d722ed..3f6fecd 100644 --- a/test/tstodr.c +++ b/test/tstodr.c @@ -223,7 +223,7 @@ static void tst_berint(ODR encode, ODR decode) ber_integer(decode, &ret_val); YAZ_CHECK_EQ(ret_val, 2147483647); - val = -2147483648L; /* -2^31 */ + val = (Odr_int) -2147483647L -1; /* -2^31 */ odr_reset(encode); r = ber_integer(encode, &val); YAZ_CHECK_EQ(r, 1); @@ -239,7 +239,7 @@ static void tst_berint(ODR encode, ODR decode) odr_reset(decode); odr_setbuf(decode, buf, len, 0); ber_integer(decode, &ret_val); - YAZ_CHECK_EQ(ret_val, -2147483648L); + YAZ_CHECK_EQ(ret_val, (Odr_int) -2147483647L -1); val = (Odr_int) 2 * 2147483648UL; /* 2^32 */ odr_reset(encode);