Minor updates to aid porting to FreeBSD

Based on patches provided by Jason Bacon
This commit is contained in:
Henry Weller
2015-12-02 18:18:06 +00:00
parent a52cae9102
commit 633e2b1255
5 changed files with 8 additions and 9 deletions

View File

@ -31,7 +31,7 @@ inline Foam::label Foam::CV2D::insertPoint
const label type
)
{
uint nVert = number_of_vertices();
unsigned int nVert = number_of_vertices();
return insertPoint(toPoint(p), nVert, type);
}
@ -55,7 +55,7 @@ inline Foam::label Foam::CV2D::insertPoint
const label type
)
{
uint nVert = number_of_vertices();
unsigned int nVert = number_of_vertices();
Vertex_handle vh = insert(p);

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -29,7 +29,6 @@ License
#include <signal.h>
#include <unistd.h>
#include <sys/sysmacros.h>
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -28,9 +28,9 @@ License
// * * * * * * * * * * * * * * * IOstream Operators * * * * * * * * * * * * //
uint Foam::readUint(Istream& is)
unsigned int Foam::readUint(Istream& is)
{
uint val;
unsigned int val;
is >> val;
return val;

View File

@ -119,7 +119,7 @@ public:
return p_;
}
//- Access to the uint value
//- Access to the uint32_t value
operator uint32_t&()
{
return p_;

View File

@ -119,7 +119,7 @@ public:
return p_;
}
//- Access to the uint value
//- Access to the uint64_t value
operator uint64_t&()
{
return p_;