summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranklin Wei <frankhwei536@gmail.com>2014-04-06 22:02:41 +0100
committerFranklin Wei <frankhwei536@gmail.com>2014-04-06 22:02:41 +0100
commit812f81f973cafd94e9d1caafad7b8226776d2566 (patch)
treebe6a14b8674d343213a33556ec99665e786a5f04
parent6030df2c8fcb047c342aa8156af82479d6f8cb20 (diff)
downloadpish-812f81f973cafd94e9d1caafad7b8226776d2566.zip
pish-812f81f973cafd94e9d1caafad7b8226776d2566.tar.gz
pish-812f81f973cafd94e9d1caafad7b8226776d2566.tar.bz2
pish-812f81f973cafd94e9d1caafad7b8226776d2566.tar.xz
Casted toupper to char
-rw-r--r--morse.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/morse.cpp b/morse.cpp
index ae0e391..f54800f 100644
--- a/morse.cpp
+++ b/morse.cpp
@@ -32,7 +32,7 @@ void transmit(const string& str)
tmp=toupper(ch);
string morse=table[tmp];
if(morse!="")
- cout << toupper(ch) << ": " << flush;
+ cout << (char)toupper(ch) << ": " << flush;
for(unsigned int j=0;j<morse.length();++j)
{
char morseCh=morse[j];