Is this really right?

Cyrille Berger cberger at cberger.net
Wed Feb 1 23:40:35 CET 2006


> In the convolution painter, we've got lines like this:
>
> memcpy( pixelPtrCache.data() + krow * kw, pixelPtrCache.data() + lastvalid,
> kw*sizeof(Q_UINT8*));
>
> Do we really want to size of a pointer to a byte; or the size of a byte
> here?
we really want the size of a pointer as we pixelPtrCache.data() is a 
Q_UINT8**, it's more likely that we try to copy one pixel too much, I will 
check  that.

-- 
--- Cyrille Berger ---


More information about the kimageshop mailing list