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
path: root/source
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2021-07-05 20:05:28 +0300
committerHans Goudey <h.goudey@me.com>2021-07-05 20:05:28 +0300
commitde70bcbb3684be446cf1106fd150d31d606ae415 (patch)
treecb0958439c50bd68d8f8b9770570c9fbfb7c1a89 /source
parentfd0370acc2129fbc3a07a776bca024ba4512b654 (diff)
Cleanup: Clang tidy, unused include
Also a stupidly-included change I made when committing the patch.
Diffstat (limited to 'source')
-rw-r--r--source/blender/nodes/function/nodes/node_fn_float_to_int.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/nodes/function/nodes/node_fn_float_to_int.cc b/source/blender/nodes/function/nodes/node_fn_float_to_int.cc
index 5bc60509b54..26cde576400 100644
--- a/source/blender/nodes/function/nodes/node_fn_float_to_int.cc
+++ b/source/blender/nodes/function/nodes/node_fn_float_to_int.cc
@@ -14,9 +14,8 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include <math.h>
+#include <cmath>
-#include "BLI_listbase.h"
#include "BLI_string.h"
#include "RNA_enum_types.h"
@@ -54,7 +53,7 @@ static void node_float_to_int_label(bNodeTree *UNUSED(ntree), bNode *node, char
static const blender::fn::MultiFunction &get_multi_function(bNode &bnode)
{
static blender::fn::CustomMF_SI_SO<float, int> round_fn{"Round",
- [](float a) { return std::round(a); }};
+ [](float a) { return (int)round(a); }};
static blender::fn::CustomMF_SI_SO<float, int> floor_fn{"Floor",
[](float a) { return (int)floor(a); }};
static blender::fn::CustomMF_SI_SO<float, int> ceil_fn{"Ceiling",