Skip to content

Commit 03c270d

Browse files
mfrancepilloisEwanC
authored andcommitted
Add const variable
1 parent a8ea015 commit 03c270d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/adapters/cuda/command_buffer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ static ur_result_t enqueueCommandBufferFillHelper(
113113
Result);
114114

115115
try {
116-
size_t N = Size / PatternSize;
116+
const size_t N = Size / PatternSize;
117117
auto Value = *static_cast<const uint32_t *>(Pattern);
118118
auto DstPtr = DstType == CU_MEMORYTYPE_DEVICE
119119
? *static_cast<CUdeviceptr *>(DstDevice)

0 commit comments

Comments
 (0)