Skip to content

Commit 3025abd

Browse files
committed
[CTS][NFC] Reuse variable for allocation size
1 parent da3ee42 commit 3025abd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/conformance/usm/urUSMFree.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ TEST_P(urUSMFreeTest, SuccessHostAlloc) {
4242
void *ptr = nullptr;
4343
size_t allocation_size = sizeof(int);
4444
ASSERT_SUCCESS(
45-
urUSMHostAlloc(context, nullptr, nullptr, sizeof(int), &ptr));
45+
urUSMHostAlloc(context, nullptr, nullptr, allocation_size, &ptr));
4646

4747
ur_event_handle_t event = nullptr;
4848
uint8_t pattern = 0;

0 commit comments

Comments
 (0)