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-07-10 09:42:36 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-07-10 09:42:36 +0300
commita7ed374459afb77c86201cbef1c09ea622bd44cc (patch)
treed36dea553237fd4acc4ce99a7aec7c403d23cc3c
parent66f1c3b882d59ea2b6600dfe9464c7c81e8c8483 (diff)
makesrna: use int64 for rounding check
Harmless but larger values would overflow
-rw-r--r--source/blender/makesrna/intern/makesrna.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/makesrna.c b/source/blender/makesrna/intern/makesrna.c
index dfd0f13ec1a..0f00dd7a586 100644
--- a/source/blender/makesrna/intern/makesrna.c
+++ b/source/blender/makesrna/intern/makesrna.c
@@ -503,7 +503,7 @@ static void rna_float_print(FILE *f, float num)
{
if (num == -FLT_MAX) fprintf(f, "-FLT_MAX");
else if (num == FLT_MAX) fprintf(f, "FLT_MAX");
- else if ((int)num == num) fprintf(f, "%.1ff", num);
+ else if ((int64_t)num == num) fprintf(f, "%.1ff", num);
else fprintf(f, "%.10ff", num);
}