summaryrefslogtreecommitdiff
path: root/src/commandline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/commandline.cpp')
-rw-r--r--src/commandline.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commandline.cpp b/src/commandline.cpp
index 95d336d34..110aa60f5 100644
--- a/src/commandline.cpp
+++ b/src/commandline.cpp
@@ -204,7 +204,7 @@ void parseOptions(const int argc, char *const argv[])
options.serverName = optarg;
break;
case 'p':
- options.serverPort = static_cast<uint16_t>(atoi(optarg));
+ options.serverPort = CAST_U16(atoi(optarg));
break;
case 'u':
options.skipUpdate = true;
@@ -242,7 +242,7 @@ void parseOptions(const int argc, char *const argv[])
options.test = std::string(optarg);
break;
case 'r':
- options.renderer = static_cast<int>(atoi(optarg));
+ options.renderer = CAST_S32(atoi(optarg));
break;
case 'y':
options.serverType = optarg;