From 0068c98ad2653c3ed3ac70250893531d072c2fbb Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 23 Apr 2009 00:01:14 +0000 Subject: [PATCH] Make version test ignore the bottom byte of the version number. svn:r1225 --- test/regress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: ; } -- 2.40.0