From 91a62cb2c3847afd6fa1d6e12eedb490004a23e7 Mon Sep 17 00:00:00 2001 From: Dominik Christ Date: Tue, 5 May 2015 15:11:10 +0100 Subject: [PATCH] Fixed debug statement in factorial in label.C --- ListOfContributors | 1 + src/foam/primitives/ints/label/label.C | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ListOfContributors b/ListOfContributors index 9210e54db..3dc4d03ea 100644 --- a/ListOfContributors +++ b/ListOfContributors @@ -75,3 +75,4 @@ 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"