[Bf-blender-cvs] [8f9b812d79f] blender-v3.3-release: Fix build error on i386 due to wrong use of float_t
Brecht Van Lommel
noreply at git.blender.org
Fri Aug 19 17:30:35 CEST 2022
Commit: 8f9b812d79fae64ee622760338a7c5920c94ab05
Author: Brecht Van Lommel
Date: Fri Aug 19 17:16:42 2022 +0200
Branches: blender-v3.3-release
https://developer.blender.org/rB8f9b812d79fae64ee622760338a7c5920c94ab05
Fix build error on i386 due to wrong use of float_t
Was supposed to be float, likely copy paste error from int32_t.
===================================================================
M source/blender/blenkernel/intern/idprop_create.cc
===================================================================
diff --git a/source/blender/blenkernel/intern/idprop_create.cc b/source/blender/blenkernel/intern/idprop_create.cc
index f549393fd12..499a43ee0a7 100644
--- a/source/blender/blenkernel/intern/idprop_create.cc
+++ b/source/blender/blenkernel/intern/idprop_create.cc
@@ -76,7 +76,7 @@ template<
std::unique_ptr<IDProperty, IDPropertyDeleter> create_array(StringRefNull prop_name,
Span<PrimitiveType> values)
{
- static_assert(std::is_same_v<PrimitiveType, int32_t> || std::is_same_v<PrimitiveType, float_t> ||
+ static_assert(std::is_same_v<PrimitiveType, int32_t> || std::is_same_v<PrimitiveType, float> ||
std::is_same_v<PrimitiveType, double>,
"Allowed values for PrimitiveType are int32_t, float and double.");
static_assert(!std::is_same_v<PrimitiveType, int32_t> || id_property_subtype == IDP_INT,
More information about the Bf-blender-cvs
mailing list