From 5357474ad8b81ce0e41907d99e9636fcc7c3a6f6 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Sat, 10 Jan 2015 19:13:38 +0100 Subject: Fix building with very strict flags, use size_t rather than int for string length. Reported on bf-committers. --- source/blender/editors/animation/keyframes_general.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/animation/keyframes_general.c') diff --git a/source/blender/editors/animation/keyframes_general.c b/source/blender/editors/animation/keyframes_general.c index 6d73cd0c04c..6acff134a97 100644 --- a/source/blender/editors/animation/keyframes_general.c +++ b/source/blender/editors/animation/keyframes_general.c @@ -747,7 +747,7 @@ static tAnimCopybufItem *pastebuf_match_index_only(FCurve *fcu, const short from static void do_curve_mirror_flippping(tAnimCopybufItem *aci, BezTriple *bezt) { if (aci->is_bone) { - int slength = strlen(aci->rna_path); + const size_t slength = strlen(aci->rna_path); bool flip = false; if (BLI_strn_endswith(aci->rna_path, "location", slength) && aci->array_index == 0) flip = true; -- cgit v1.2.3