Skip to content

Commit b0ceaef

Browse files
committed
xrCDB/ISpatial.h: use uintptr_t instead of intptr_t
1 parent 015bfac commit b0ceaef

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

src/xrCDB/ISpatial.h

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -157,19 +157,13 @@ class ISpatial_NODE
157157
bool _empty()
158158
{
159159
return items.empty() &&
160-
0 == (intptr_t(children[0]) | intptr_t(children[1]) | intptr_t(children[2]) | intptr_t(children[3]) | intptr_t(children[4]) |
161-
intptr_t(children[5]) | intptr_t(children[6]) | intptr_t(children[7]));
160+
0 == (uintptr_t(children[0]) | uintptr_t(children[1]) |
161+
uintptr_t(children[2]) | uintptr_t(children[3]) |
162+
uintptr_t(children[4]) | uintptr_t(children[5]) |
163+
uintptr_t(children[6]) | uintptr_t(children[7]));
162164
}
163165
};
164-
////////////
165166

166-
// template <class T, int granularity>
167-
// class poolSS;
168-
#ifndef DLL_API
169-
#define DLL_API XR_IMPORT
170-
#endif // #ifndef DLL_API
171-
172-
//////////////////////////////////////////////////////////////////////////
173167
class XRCDB_API ISpatial_DB : private Noncopyable
174168
{
175169
public:

0 commit comments

Comments
 (0)