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>2015-10-23 17:01:10 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-10-23 17:01:10 +0300
commit08706122682507fd8f994109305f4120d54648ff (patch)
treed8da899bf4637be367e66dff1fad49d79162df9d /source/blender/editors/space_image/image_ops.c
parent23848a70de47273496111e29c53d1d7b64c4c090 (diff)
Cleanup: use int for view_id's & view count
`size_t` is useful for memory sizes or offsets, the number of views wont realistically exceed an int.
Diffstat (limited to 'source/blender/editors/space_image/image_ops.c')
-rw-r--r--source/blender/editors/space_image/image_ops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_image/image_ops.c b/source/blender/editors/space_image/image_ops.c
index faba61c7d28..ab062eb133b 100644
--- a/source/blender/editors/space_image/image_ops.c
+++ b/source/blender/editors/space_image/image_ops.c
@@ -1758,9 +1758,9 @@ static bool save_image_doit(bContext *C, SpaceImage *sima, wmOperator *op, SaveI
}
/* individual multiview images */
else if (imf->views_format == R_IMF_VIEWS_INDIVIDUAL) {
- size_t i;
+ int i;
unsigned char planes = ibuf->planes;
- const size_t totviews = (rr ? BLI_listbase_count(&rr->views) : BLI_listbase_count(&ima->views));
+ const int totviews = (rr ? BLI_listbase_count(&rr->views) : BLI_listbase_count(&ima->views));
if (!is_multilayer) {
ED_space_image_release_buffer(sima, ibuf, lock);