Skip to content

Commit

Permalink
label: corrected debug logic for factorial
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry Weller committed Jan 22, 2018
1 parent ee536e6 commit c5d0a45
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/OpenFOAM/primitives/ints/label/label.C
Expand Up @@ -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-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
Expand All @@ -23,7 +23,6 @@ License
\*---------------------------------------------------------------------------*/

#include "error.H"
#include "label.H"

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Expand Down Expand Up @@ -69,7 +68,7 @@ Foam::label Foam::factorial(label n)
};

#ifdef FULLDEBUG
if (n > 12 && n < 0)
if (n > 12 || n < 0)
{
FatalErrorInFunction
<< "n value out of range"
Expand Down

0 comments on commit c5d0a45

Please sign in to comment.