summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cam/options.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cam/options.cpp b/src/cam/options.cpp
index b80d361e..bea4a600 100644
--- a/src/cam/options.cpp
+++ b/src/cam/options.cpp
@@ -530,7 +530,7 @@ void OptionsParser::parseValueError(const Option &option)
if (option.name)
optionName = "--" + std::string(option.name);
else
- optionName = "-" + static_cast<char>(option.opt);
+ optionName = "-" + std::string(1, option.opt);
std::cerr << "Can't parse " << option.typeName()
<< " argument for option " << optionName << std::endl;