We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58fae70 commit 53bfcb0Copy full SHA for 53bfcb0
test/common/level_zero_mocks.h
@@ -17,8 +17,8 @@
17
18
// TEST CREATE methods for objects
19
20
-template <class T> constexpr T TestCreatePointer(uint32_t modifier = 0) {
21
- return reinterpret_cast<T>(0x1000 + modifier);
+template <class T> constexpr T TestCreatePointer(uintptr_t modifier = 0) {
+ return reinterpret_cast<T>(static_cast<uintptr_t>(0x1000) + modifier);
22
}
23
24
ze_device_properties_t TestCreateDeviceProperties();
0 commit comments