Skip to content

Commit 2d46fe7

Browse files
authored
[NFC] Fix typo in address space conversion example (#1322)
1 parent 6662fc3 commit 2d46fe7

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)