From f228edefd3d7848d18115765ef01ce63cb4f7395 Mon Sep 17 00:00:00 2001 From: cristy Date: Mon, 21 Nov 2011 18:18:24 +0000 Subject: [PATCH] --- MagickCore/thread-private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MagickCore/thread-private.h b/MagickCore/thread-private.h index 6b726c215..497f13fba 100644 --- a/MagickCore/thread-private.h +++ b/MagickCore/thread-private.h @@ -124,7 +124,7 @@ static inline int GetOpenMPThreadId(void) static inline void SetOpenMPMaximumThreads(const int threads) { #if defined(MAGICKCORE_OPENMP_SUPPORT) && (_OPENMP >= 200203) - omp_set_num_threads(threads); + omp_set_num_threads(threads < 1 ? 1 : threads); #else (void) threads; #endif -- 2.40.0