diff --git a/source/MaaHttp/source/main.cpp b/source/MaaHttp/source/main.cpp index dd670de80..3c3421928 100644 --- a/source/MaaHttp/source/main.cpp +++ b/source/MaaHttp/source/main.cpp @@ -65,7 +65,7 @@ int main(int argc, char* argv[]) } else { auto disp = new lhg::server::Dispatcher(); - auto server = new lhg::server::Server(disp, port); + auto server = new lhg::server::Server(disp, static_cast(port)); auto self = boost::dll::program_location();