src/OpenFOAM/primitives/ints: Corrected MIN and MAX for uints
Resolves bug-report http://bugs.openfoam.org/view.php?id=2137
This commit is contained in:
parent
4bb9e66c24
commit
c3eea1df03
4 changed files with 5 additions and 7 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
|
|
@ -92,8 +92,6 @@ inline uLabel component(const uLabel l, const direction)
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
#include "uLabelSpecific.H"
|
|
||||||
|
|
||||||
#undef UINT_ADD_SIZE
|
#undef UINT_ADD_SIZE
|
||||||
#undef UINT_ADD_DEF_SIZE
|
#undef UINT_ADD_DEF_SIZE
|
||||||
#undef UINT_SIZE
|
#undef UINT_SIZE
|
||||||
|
|
|
||||||
|
|
@ -29,8 +29,8 @@ License
|
||||||
|
|
||||||
const uint32_t Foam::pTraits<uint32_t>::zero = 0;
|
const uint32_t Foam::pTraits<uint32_t>::zero = 0;
|
||||||
const uint32_t Foam::pTraits<uint32_t>::one = 1;
|
const uint32_t Foam::pTraits<uint32_t>::one = 1;
|
||||||
const uint32_t Foam::pTraits<uint32_t>::min = INT32_MIN;
|
const uint32_t Foam::pTraits<uint32_t>::min = 0;
|
||||||
const uint32_t Foam::pTraits<uint32_t>::max = INT32_MAX;
|
const uint32_t Foam::pTraits<uint32_t>::max = UINT32_MAX;
|
||||||
const uint32_t Foam::pTraits<uint32_t>::rootMin = pTraits<uint32_t>::min;
|
const uint32_t Foam::pTraits<uint32_t>::rootMin = pTraits<uint32_t>::min;
|
||||||
const uint32_t Foam::pTraits<uint32_t>::rootMax = pTraits<uint32_t>::max;
|
const uint32_t Foam::pTraits<uint32_t>::rootMax = pTraits<uint32_t>::max;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,8 +29,8 @@ License
|
||||||
|
|
||||||
const uint64_t Foam::pTraits<uint64_t>::zero = 0;
|
const uint64_t Foam::pTraits<uint64_t>::zero = 0;
|
||||||
const uint64_t Foam::pTraits<uint64_t>::one = 1;
|
const uint64_t Foam::pTraits<uint64_t>::one = 1;
|
||||||
const uint64_t Foam::pTraits<uint64_t>::min = INT64_MIN;
|
const uint64_t Foam::pTraits<uint64_t>::min = 0;
|
||||||
const uint64_t Foam::pTraits<uint64_t>::max = INT64_MAX;
|
const uint64_t Foam::pTraits<uint64_t>::max = UINT64_MAX;
|
||||||
const uint64_t Foam::pTraits<uint64_t>::rootMin = pTraits<uint64_t>::min;
|
const uint64_t Foam::pTraits<uint64_t>::rootMin = pTraits<uint64_t>::min;
|
||||||
const uint64_t Foam::pTraits<uint64_t>::rootMax = pTraits<uint64_t>::max;
|
const uint64_t Foam::pTraits<uint64_t>::rootMax = pTraits<uint64_t>::max;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue