View Issue Details

IDProjectCategoryView StatusLast Update
0002152OpenFOAMPatchpublic2016-07-15 11:46
ReporterwyldckatAssigned Tohenry 
Status resolvedResolutionfixed 
Product Versiondev 
Fixed in Versiondev 
Summary0002152: "uint.H" has an inconsistent definition, when cross-checking with "uintIO.C"
DescriptionThe file "src/OpenFOAM/primitives/ints/uint/uint.H" has this declaration:

  uint readUint(Istream&);

while "uintIO.C" defines it as:

  unsigned int Foam::readUint(Istream& is)

This is an inconsistency, given that some systems will either not have a definition for "uint" or may have another different definition from "unsigned int".

Attached is the file that fixes this in "uint.H", by using "unsigned int" instead of "uint".
Additional InformationThis is a bit bias on my part, given that I'm currently working on porting the OpenFOAM-dev master branch to Windows and "uint" is undefined with the standard definitions that are inherited from "uint32.H" in the current stack that I'm using.

Nonetheless, an explicit usage of "unsigned int" makes a bit more sense, in case there are more systems that simply don't have "uint" defined or have a simply have a different definition.
TagsNo tags attached.



2016-07-15 11:16


uint.H (2,555 bytes)


2016-07-15 11:46

manager   ~0006531

Resolved by commit f4a588d421348a8cfb5a744e71d604e1661b5194

Issue History

Date Modified Username Field Change
2016-07-15 11:16 wyldckat New Issue
2016-07-15 11:16 wyldckat Status new => assigned
2016-07-15 11:16 wyldckat Assigned To => henry
2016-07-15 11:16 wyldckat File Added: uint.H
2016-07-15 11:46 henry Note Added: 0006531
2016-07-15 11:46 henry Status assigned => resolved
2016-07-15 11:46 henry Fixed in Version => dev
2016-07-15 11:46 henry Resolution open => fixed