Skip to content

Commit

Permalink
Use explicit pointer type conversion to avoid building failure
Browse files Browse the repository at this point in the history
  • Loading branch information
HolyWu committed Sep 23, 2017
1 parent 20cba64 commit ba6c561
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NNEDI3CL/NNEDI3CL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ void process_uint(__read_only image2d_t src, __write_only image2d_t dst, __read_

barrier(CLK_LOCAL_MEM_FENCE);

const float8 mstd3 = internalProcess(&input[localY][8 * localX], weights);
const float8 mstd3 = internalProcess((const __local float (*)[INPUT_WIDTH])&input[localY][8 * localX], weights);

if (dstY < dstHeight) {
for (uint i = 0; i < 8; i++) {
Expand Down Expand Up @@ -188,7 +188,7 @@ void process_float(__read_only image2d_t src, __write_only image2d_t dst, __read

barrier(CLK_LOCAL_MEM_FENCE);

const float8 mstd3 = internalProcess(&input[localY][8 * localX], weights);
const float8 mstd3 = internalProcess((const __local float (*)[INPUT_WIDTH])&input[localY][8 * localX], weights);

if (dstY < dstHeight) {
for (uint i = 0; i < 8; i++) {
Expand Down

0 comments on commit ba6c561

Please sign in to comment.