diff options
Diffstat (limited to 'src/core/SkPaint.cpp')
-rw-r--r-- | src/core/SkPaint.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/SkPaint.cpp b/src/core/SkPaint.cpp index 221be3d..e7d017e 100644 --- a/src/core/SkPaint.cpp +++ b/src/core/SkPaint.cpp @@ -177,9 +177,9 @@ extern "C" { SkPaint::SkPaint(const SkPaint& src) { //Note: need to update this when SkPaint struture/size is changed! if(sizeof(src) == 76){ - memcpy_76((int*)this, (int*)&src); + memcpy_76((int*)this, (const int*)&src); } else { - memcpy((int*)this, (int*)&src, sizeof(src)); + memcpy((int*)this, (const int*)&src, sizeof(src)); } SkSafeRef(fTypeface); |