Skip to content

Commit b207160

Browse files
jbrodmanvladimirlaz
authored andcommitted
Use proper type.
Signed-off-by: James Brodman <[email protected]>
1 parent 18a45f9 commit b207160

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/doc/extensions/USM/USM.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ float* c = static_cast<float*>(malloc_shared(10*sizeof(float), dev, ctxt));
530530
531531
auto e = q.submit([&](handler& cgh) {
532532
cgh.parallel_for<class vec_add>(range<1> {10}, [=](id<1> ID) {
533-
int i = ID[0];
533+
size_t i = ID[0];
534534
c[i] = a[i] + b[i];
535535
});
536536
});

0 commit comments

Comments
 (0)