diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-07-10 09:42:36 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-07-10 09:42:36 +0300 |
commit | a7ed374459afb77c86201cbef1c09ea622bd44cc (patch) | |
tree | d36dea553237fd4acc4ce99a7aec7c403d23cc3c /source/blender/makesrna/intern/makesrna.c | |
parent | 66f1c3b882d59ea2b6600dfe9464c7c81e8c8483 (diff) |
makesrna: use int64 for rounding check
Harmless but larger values would overflow
Diffstat (limited to 'source/blender/makesrna/intern/makesrna.c')
-rw-r--r-- | source/blender/makesrna/intern/makesrna.c | 2 |
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); } |