diff --git a/src/applications/bmqbrkr/bmqbrkr.m.cpp b/src/applications/bmqbrkr/bmqbrkr.m.cpp index 50ba624740..d8472dd785 100644 --- a/src/applications/bmqbrkr/bmqbrkr.m.cpp +++ b/src/applications/bmqbrkr/bmqbrkr.m.cpp @@ -293,9 +293,8 @@ static int getConfig(bsl::ostream& errorDescription, << "generated config file (first 1024 characters):\n" << taskEnv->d_configJson.substr( 0, - bsl::min(1024, - static_cast( - taskEnv->d_configJson.length()))); + bsl::min(bsl::string::size_type(1024), + taskEnv->d_configJson.length())); return rc_DECODE_FAILED; // RETURN }