Skip to content

Commit c8e96e2

Browse files
committed
Fix cast from pointer to integer type
Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent 3f4dcf3 commit c8e96e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/textord/bbgrid.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ template<class BBC, class BBC_CLIST, class BBC_C_IT> class BBGrid
227227
// Hash functor for generic pointers.
228228
template<typename T> struct PtrHash {
229229
size_t operator()(const T* ptr) const {
230-
return reinterpret_cast<size_t>(ptr) / sizeof(T);
230+
return reinterpret_cast<uintptr_t>(ptr) / sizeof(T);
231231
}
232232
};
233233

0 commit comments

Comments
 (0)