x86: memtest: use pointers of equal type for comparison