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:
Diffstat (limited to 'source/blender/imbuf/intern/colormanagement.c')
-rw-r--r--source/blender/imbuf/intern/colormanagement.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/imbuf/intern/colormanagement.c b/source/blender/imbuf/intern/colormanagement.c
index 08e1bc5f674..2c42d59a2d9 100644
--- a/source/blender/imbuf/intern/colormanagement.c
+++ b/source/blender/imbuf/intern/colormanagement.c
@@ -2342,7 +2342,7 @@ void IMB_colormanagement_imbuf_to_float_texture(float *out_buffer,
}
}
else {
- memcpy(out, in, sizeof(float) * 4 * width);
+ memcpy(out, in, sizeof(float[4]) * width);
}
}
}
@@ -3511,7 +3511,7 @@ static void partial_buffer_update_rect(ImBuf *ibuf,
size_t display_offset = ((size_t)display_stride * i + xmin) * 4;
memcpy(
- display_buffer + display_offset, byte_buffer + byte_offset, 4 * sizeof(char) * width);
+ display_buffer + display_offset, byte_buffer + byte_offset, sizeof(char[4]) * width);
}
}
}