fixed comparison issue in calculator.cpp