mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-08 11:53:00 -04:00
Make version test ignore the bottom byte of the version number.
svn:r1225
This commit is contained in:
parent
e2b987ede1
commit
0068c98ad2
@ -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:
|
||||
;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user