[Bf-blender-cvs] [2200e5a2802] master: Fix strict compiler error after recent UI changes

Sergey Sharybin noreply at git.blender.org
Fri Jul 21 10:54:54 CEST 2017


Commit: 2200e5a28026362946c730d17aa9f225db29a13a
Author: Sergey Sharybin
Date:   Fri Jul 21 10:52:36 2017 +0200
Branches: master
https://developer.blender.org/rB2200e5a28026362946c730d17aa9f225db29a13a

Fix strict compiler error after recent UI changes

===================================================================

M	source/blender/editors/interface/interface_utils.c

===================================================================

diff --git a/source/blender/editors/interface/interface_utils.c b/source/blender/editors/interface/interface_utils.c
index cf16cc9f50d..1927d7280f3 100644
--- a/source/blender/editors/interface/interface_utils.c
+++ b/source/blender/editors/interface/interface_utils.c
@@ -265,7 +265,7 @@ int UI_icon_from_report_type(int type)
  */
 int UI_calc_float_precision(int prec, double value)
 {
-	static const double pow10_neg[UI_PRECISION_FLOAT_MAX + 1] = {1e0, 1e-1, 1e-2, 1e-3, 1e-4, 1e-5, 1e-6, 1e-7};
+	static const double pow10_neg[UI_PRECISION_FLOAT_MAX + 1] = {1e0, 1e-1, 1e-2, 1e-3, 1e-4, 1e-5, 1e-6};
 	static const double max_pow = 10000000.0;  /* pow(10, UI_PRECISION_FLOAT_MAX) */
 
 	BLI_assert(prec <= UI_PRECISION_FLOAT_MAX);




More information about the Bf-blender-cvs mailing list