diff --git a/ListOfContributors b/ListOfContributors index 36b201f73..81e78d4be 100644 --- a/ListOfContributors +++ b/ListOfContributors @@ -82,3 +82,4 @@ Contents: Niklas Wikstrom Vanja Skuric Alexander Vakhrushev + Inno Gatin diff --git a/src/foam/primitives/ints/label/label.C b/src/foam/primitives/ints/label/label.C index 96962128c..77cc9610a 100644 --- a/src/foam/primitives/ints/label/label.C +++ b/src/foam/primitives/ints/label/label.C @@ -81,7 +81,7 @@ label factorial(label n) }; # ifdef FULLDEBUG - if (n > 12 && n < 0) + if (n > 12 || n < 0) { FatalErrorIn("factorial(label n)") << "n value out of range"