Skip to content
Commit fb4dccc1 authored by synergy dev's avatar synergy dev
Browse files

libc2dcolorconvert: fix arithmetic on a pointer to void

Use char* instead of void* for this
pointer arithmetic. Fixes the following:

hardware/qcom/media/libc2dcolorconvert/C2DColorConverter.cpp:321:70: error: arithmetic on a pointer to void
        srcSurfaceDef->phys0  = getMappedGPUAddr(fd, data, mSrcSize) + ((uint8_t *)data - (uint8_t *)base);
                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
hardware/qcom/media/libc2dcolorconvert/C2DColorConverter.cpp:333:70: error: arithmetic on a pointer to void
        dstSurfaceDef->phys0  = getMappedGPUAddr(fd, data, mDstSize) + ((uint8_t *)data - (uint8_t *)base);
                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^

Change-Id: Ia3d17a9e47811da118abc7802e64adc1d5c0cddf
parent ad7c7d38
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment