Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-04-26 18:24:11 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-04-26 18:25:16 +0400
commit7ca74fc1c008355b84c08bcadb56ea6acabce2f3 (patch)
tree6823cc2e0945928dbabb3e4735380128d61eace2 /source/blender/imbuf/intern/scaling.c
parent88a0fe5f1bc52ebd918be1f63af57cf0f9d594d1 (diff)
Code cleanup: use 'const' for arrays (blenloader, gpu, imbuf, makesdna, modifiers, nodes)
Diffstat (limited to 'source/blender/imbuf/intern/scaling.c')
-rw-r--r--source/blender/imbuf/intern/scaling.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/imbuf/intern/scaling.c b/source/blender/imbuf/intern/scaling.c
index d9cec1f3047..34253cd227c 100644
--- a/source/blender/imbuf/intern/scaling.c
+++ b/source/blender/imbuf/intern/scaling.c
@@ -618,7 +618,7 @@ static void enlarge_picture_float(
y_src = 0;
for (y_dst = 0; y_dst < dst_height; y_dst++) {
float *line1 = src + ((int) y_src) * 4 * src_width;
- float *line2 = line1 + 4 * src_width;
+ const float *line2 = line1 + 4 * src_width;
const float weight1y = (float)(1.0 - (y_src - (int) y_src));
const float weight2y = 1.0f - weight1y;
@@ -684,7 +684,7 @@ static void shrink_picture_float(
float dx_dst, x_dst;
float dy_dst, y_dst;
float y_counter;
- float *dst_begin = dst;
+ const float *dst_begin = dst;
struct scale_outpix_float *dst_line1;
struct scale_outpix_float *dst_line2;
@@ -702,7 +702,7 @@ static void shrink_picture_float(
y_dst = 0;
y_counter = 1.0;
for (y_src = 0; y_src < src_height; y_src++) {
- float *line = src + y_src * 4 * src_width;
+ const float *line = src + y_src * 4 * src_width;
uintptr_t weight1y = 1.0f - (y_dst - (int) y_dst);
uintptr_t weight2y = 1.0f - weight1y;
x_dst = 0;