From: Nick Mathewson Date: Thu, 23 Apr 2009 00:01:14 +0000 (+0000) Subject: Make version test ignore the bottom byte of the version number. X-Git-Tag: release-2.0.3-alpha~285 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0068c98ad2653c3ed3ac70250893531d072c2fbb;p=libevent Make version test ignore the bottom byte of the version number. svn:r1225 --- diff --git a/test/regress.c b/test/regress.c index 470b7d97..2af6c80a 100644 --- a/test/regress.c +++ b/test/regress.c @@ -1408,7 +1408,7 @@ test_version(void *arg) n = sscanf(vstr, "%d.%d.%d", &major, &minor, &patch); tt_assert(3 == n); - tt_int_op(vint, ==, ((major<<24)|(minor<<16)|(patch<<8))); + tt_int_op((vint&0xffffff00), ==, ((major<<24)|(minor<<16)|(patch<<8))); end: ; }