diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-04-11 04:48:00 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-04-11 04:49:21 +0300 |
commit | 3722da3b4e8233138f9df16ffc9cb5cb120950d9 (patch) | |
tree | 3e83b165ee9d7f2051b121e93ff55c1831686954 /source/blender/makesrna/intern/makesrna.c | |
parent | 532b2786e22b7be4d052783165ba5cf915e332bf (diff) |
Cleanup: quiet harmless but annoying overflow
Caused asan to print warnings generating RNA
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 4552c773097..9d68c05dda0 100644 --- a/source/blender/makesrna/intern/makesrna.c +++ b/source/blender/makesrna/intern/makesrna.c @@ -507,7 +507,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 ((int64_t)num == num) fprintf(f, "%.1ff", num); + else if ((ABS(num) < INT64_MAX) && ((int64_t)num == num)) fprintf(f, "%.1ff", num); else fprintf(f, "%.10ff", num); } |