Skip to content

Commit

Permalink
xrCDB/ISpatial.h: use uintptr_t instead of intptr_t
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed May 20, 2018
1 parent 015bfac commit b0ceaef
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions src/xrCDB/ISpatial.h
Original file line number Diff line number Diff line change
Expand Up @@ -157,19 +157,13 @@ class ISpatial_NODE
bool _empty()
{
return items.empty() &&
0 == (intptr_t(children[0]) | intptr_t(children[1]) | intptr_t(children[2]) | intptr_t(children[3]) | intptr_t(children[4]) |
intptr_t(children[5]) | intptr_t(children[6]) | intptr_t(children[7]));
0 == (uintptr_t(children[0]) | uintptr_t(children[1]) |
uintptr_t(children[2]) | uintptr_t(children[3]) |
uintptr_t(children[4]) | uintptr_t(children[5]) |
uintptr_t(children[6]) | uintptr_t(children[7]));
}
};
////////////

// template <class T, int granularity>
// class poolSS;
#ifndef DLL_API
#define DLL_API XR_IMPORT
#endif // #ifndef DLL_API

//////////////////////////////////////////////////////////////////////////
class XRCDB_API ISpatial_DB : private Noncopyable
{
public:
Expand Down

0 comments on commit b0ceaef

Please sign in to comment.