Yeah, it might be better to test with:
Code:
std::cout << maxX << std::endl;