From 69d022176d7674c730d263e2aff31a8dde7aaf32 Mon Sep 17 00:00:00 2001 From: James Zern Date: Tue, 19 Jun 2012 22:28:34 -0700 Subject: [PATCH] cosmetics: add missing const Change-Id: I0c0e89bbe826961b02a40ada5a6f89e02abee378 --- src/dec/vp8l.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dec/vp8l.c b/src/dec/vp8l.c index d347bf1c..08e4d942 100644 --- a/src/dec/vp8l.c +++ b/src/dec/vp8l.c @@ -139,7 +139,7 @@ static WEBP_INLINE int PlaneCodeToDistance(int xsize, int plane_code) { const int dist_code = code_to_plane_lut[plane_code - 1]; const int yoffset = dist_code >> 4; const int xoffset = 8 - (dist_code & 0xf); - int dist = yoffset * xsize + xoffset; + const int dist = yoffset * xsize + xoffset; return (dist >= 1) ? dist : 1; } }