Cleanup: Clang tidy, unused include

Also a stupidly-included change I made when committing the patch.
This commit is contained in:
Hans Goudey 2021-07-05 12:05:28 -05:00
parent fd0370acc2
commit de70bcbb36
1 changed files with 2 additions and 3 deletions

View File

@ -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",