Skip to content

Commit 73971af

Browse files
wenju-heaharon-abramson
authored andcommitted
[NFC] Fix typo in address space conversion example (#1322)
1 parent 32f65e2 commit 73971af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OpenCL_C.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3336,7 +3336,7 @@ constant int *cp;
33363336

33373337
int *p;
33383338
gp = (global int *)lp; // illegal to cast between named address spaces
3339-
p = (int *)lp; // legal to cast from global to generic
3339+
p = (int *)gp; // legal to cast from global to generic
33403340
gp = (global int*)p; // legal to cast from generic to global
33413341
----------
33423342

0 commit comments

Comments
 (0)