Skip to content

Commit 53bfcb0

Browse files
committed
TestCreatePointer fix
1 parent 58fae70 commit 53bfcb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/common/level_zero_mocks.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
// TEST CREATE methods for objects
1919

20-
template <class T> constexpr T TestCreatePointer(uint32_t modifier = 0) {
21-
return reinterpret_cast<T>(0x1000 + modifier);
20+
template <class T> constexpr T TestCreatePointer(uintptr_t modifier = 0) {
21+
return reinterpret_cast<T>(static_cast<uintptr_t>(0x1000) + modifier);
2222
}
2323

2424
ze_device_properties_t TestCreateDeviceProperties();

0 commit comments

Comments
 (0)