summaryrefslogtreecommitdiff
path: root/source/fitz/draw-paint.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-05-24 15:34:28 +0100
committerRobin Watts <robin.watts@artifex.com>2016-05-24 15:37:54 +0100
commit69db6d1dc9d68821965afaf42f11a5674fbfc275 (patch)
tree0485933e2ff1197683658d2f0219efa1bb9b44b4 /source/fitz/draw-paint.c
parent38c45fc53471720f9c00cc3a09014879da996ba3 (diff)
downloadmupdf-69db6d1dc9d68821965afaf42f11a5674fbfc275.tar.xz
Fix optimisation in fz_paint_affine_N_near
Only do int to int copying if we have an int to copy from. Also, when copying int to int, copy int32_t to int32_t to make us more future proof.
Diffstat (limited to 'source/fitz/draw-paint.c')
-rw-r--r--source/fitz/draw-paint.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/fitz/draw-paint.c b/source/fitz/draw-paint.c
index 568151cc..bd6bdbc1 100644
--- a/source/fitz/draw-paint.c
+++ b/source/fitz/draw-paint.c
@@ -617,7 +617,7 @@ fz_paint_span_with_mask_3(byte * restrict dp, int da, const byte * restrict sp,
{
if (da && sa)
{
- *(int*)dp = *(int *)sp;
+ *(int32_t *)dp = *(int32_t *)sp;
sp += 4; dp += 4;
}
else
@@ -1073,7 +1073,7 @@ fz_paint_span_3(byte * restrict dp, int da, const byte * restrict sp, int sa, in
if (t == 0)
{
if (da && sa)
- *(int *)dp = *(const int *)sp;
+ *(int32_t *)dp = *(const int32_t *)sp;
else
{
dp[0] = sp[0];