diff --git a/src/OpenFOAM/primitives/ints/uLabel/uLabel.C b/src/OpenFOAM/primitives/ints/uLabel/uLabel.C index f4aea858dd8e832ed4999f6f47cf15128e609abb..75905f287e820c3cfeb1e4cf2a670498f77e5a99 100644 --- a/src/OpenFOAM/primitives/ints/uLabel/uLabel.C +++ b/src/OpenFOAM/primitives/ints/uLabel/uLabel.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -47,15 +47,6 @@ Foam::uLabel Foam::pow(uLabel a, uLabel b) ans *= a; } - #ifdef FULLDEBUG - if (b < 0) - { - FatalErrorInFunction - << "negative value for b is not supported" - << abort(FatalError); - } - #endif - return ans; } @@ -69,10 +60,10 @@ Foam::uLabel Foam::factorial(uLabel n) }; #ifdef FULLDEBUG - if (n > 12 && n < 0) + if (n > 12) { FatalErrorInFunction - << "n value out of range" + << "n value out of range (> 12)" << abort(FatalError); } #endif