Skip to content

Commit

Permalink
Fix compiler error
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-webb committed Oct 16, 2024
1 parent 820ffa2 commit 3e2cc15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/cpp/asyncappendertestcase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* limitations under the License.
*/

#define NOMINMAX
#include "logunit.h"

#include <log4cxx/logger.h>
Expand Down Expand Up @@ -235,7 +236,7 @@ class AsyncAppenderTestCase : public AppenderSkeletonTestCase
void testMultiThread()
{
int LEN = 2000; // Larger than default buffer size (128)
int threadCount = max(std::thread::hardware_concurrency(), 2);
int threadCount = std::max(std::thread::hardware_concurrency(), static_cast<unsigned int>(2));
auto root = Logger::getRootLogger();
auto vectorAppender = std::make_shared<VectorAppender>();
auto asyncAppender = std::make_shared<AsyncAppender>();
Expand Down

0 comments on commit 3e2cc15

Please sign in to comment.