diff --git a/SourceFiles/Caesar.cpp b/SourceFiles/Caesar.cpp index bde50f0..7f181ab 100644 --- a/SourceFiles/Caesar.cpp +++ b/SourceFiles/Caesar.cpp @@ -78,7 +78,7 @@ std::string Caesar::getOutputString() const{ * @return The encoded message (outputString) */ std::string Caesar::encode(){ - char temp; //A temperary holder for the current working character + unsigned char temp; //A temperary holder for the current working character for(unsigned int cnt = 0;cnt < inputString.size();++cnt){ temp = inputString.at(cnt); //If it is a upper case letter shift it and wrap if necessary @@ -130,7 +130,7 @@ std::string Caesar::encode(int shiftAmount, std::string input){ * @return The decoded message (outputString) */ std::string Caesar::decode(){ - char temp; + unsigned char temp; for(unsigned int cnt = 0;cnt < inputString.size();++cnt){ temp = inputString.at(cnt); //If it is an upper case letter shift it and wrap if necessary