mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
STYLE: use uintptr_t cast instead of long when reporting addresses
This commit is contained in:
committed by
Andrew Heather
parent
4a1208ed30
commit
59da4cf56d
@ -47,15 +47,15 @@ using namespace Foam;
|
||||
template<class T>
|
||||
void printAddress(const UList<T>& list)
|
||||
{
|
||||
Info<< "list addr: " << long(&list)
|
||||
<< " data addr: " << long(list.cdata()) << nl;
|
||||
Info<< "list addr: " << uintptr_t(&list)
|
||||
<< " data addr: " << uintptr_t(list.cdata()) << nl;
|
||||
}
|
||||
|
||||
|
||||
template<class T>
|
||||
void printAddress(const SLList<T>& list)
|
||||
{
|
||||
Info<< "list addr: " << long(&list)
|
||||
Info<< "list addr: " << uintptr_t(&list)
|
||||
<< " data addr: ???" << nl;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user