From 9fe21fcd8883b37bdc30224822e6e42afb35b8f0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 7 Feb 2016 16:18:13 +0300 Subject: Replace most static_cast to shorter versions from defines. --- src/commandline.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/commandline.cpp') 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(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(atoi(optarg)); + options.renderer = CAST_S32(atoi(optarg)); break; case 'y': options.serverType = optarg; -- cgit v1.2.3-70-g09d2