Skip to content

Commit

Permalink
Revert to using memcpy().
Browse files Browse the repository at this point in the history
This revert part of 4a0222.
  • Loading branch information
TurboGit committed Apr 10, 2016
1 parent d6a0066 commit f85c0b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/iop/liquify.c
Original file line number Diff line number Diff line change
Expand Up @@ -1309,8 +1309,8 @@ void process(struct dt_iop_module_t *module, dt_dev_pixelpipe_iop_t *piece, cons
float *destrow = (float *)out + (size_t) ch * i * roi_out->width;
const float *srcrow = (float *)in + (size_t) ch * (roi_in->width * (i + roi_out->y - roi_in->y) +
roi_out->x - roi_in->x);
for (int j=0; j < ch * roi_out->width; j++)
destrow[j] = srcrow[j];

memcpy (destrow, srcrow, sizeof (float) * ch * roi_out->width);
}

// 2. build the distortion map
Expand Down

0 comments on commit f85c0b3

Please sign in to comment.