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 0df151a378
commit b4d7adcb01
5 changed files with 8 additions and 9 deletions

View File

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

View File

@ -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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -29,7 +29,6 @@ License
#include <signal.h> #include <signal.h>
#include <unistd.h> #include <unistd.h>
#include <sys/sysmacros.h>
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //

View File

@ -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-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -28,9 +28,9 @@ License
// * * * * * * * * * * * * * * * IOstream Operators * * * * * * * * * * * * // // * * * * * * * * * * * * * * * IOstream Operators * * * * * * * * * * * * //
uint Foam::readUint(Istream& is) unsigned int Foam::readUint(Istream& is)
{ {
uint val; unsigned int val;
is >> val; is >> val;
return val; return val;

View File

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

View File

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