summaryrefslogtreecommitdiff
path: root/test/testdb-mysql.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/testdb-mysql.cpp')
-rw-r--r--test/testdb-mysql.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/testdb-mysql.cpp b/test/testdb-mysql.cpp
index 24e41c0..a2c8885 100644
--- a/test/testdb-mysql.cpp
+++ b/test/testdb-mysql.cpp
@@ -8,7 +8,8 @@ namespace MyGrate::Testing {
const char * const MySQLDB::SERVER {MyGrate::getenv("MYGRATE_MYSQL_SERVER", "localhost")};
const char * const MySQLDB::USER {MyGrate::getenv("MYGRATE_MYSQL_USER", ::getenv("LOGNAME"))};
const char * const MySQLDB::PASSWORD {::getenv("MYGRATE_MYSQL_PASSWORD")};
- const unsigned short MySQLDB::PORT {(unsigned short)std::atoi(MyGrate::getenv("MYGRATE_MYSQL_PORT", "3306"))};
+ const unsigned short MySQLDB::PORT {
+ static_cast<unsigned short>(std::atoi(MyGrate::getenv("MYGRATE_MYSQL_PORT", "3306")))};
std::size_t MySQLDB::mocknum;
MySQLDB::MySQLDB() :