From c6e70e7bacf82b38ca7125d6821713a711489c0b Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Sun, 25 Sep 2022 17:39:45 +0200 Subject: Cleanup: follow C++ type cast style guide in some files https://wiki.blender.org/wiki/Style_Guide/C_Cpp#C.2B.2B_Type_Cast This was discussed in https://devtalk.blender.org/t/rfc-style-guide-for-type-casts-in-c-code/25907. --- source/blender/blenlib/BLI_memory_utils.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/blenlib/BLI_memory_utils.hh') diff --git a/source/blender/blenlib/BLI_memory_utils.hh b/source/blender/blenlib/BLI_memory_utils.hh index c2ad3ea761a..0809f372b25 100644 --- a/source/blender/blenlib/BLI_memory_utils.hh +++ b/source/blender/blenlib/BLI_memory_utils.hh @@ -516,7 +516,7 @@ inline constexpr bool is_same_any_v = (std::is_same_v || ...); */ inline constexpr int64_t default_inline_buffer_capacity(size_t element_size) { - return (static_cast(element_size) < 100) ? 4 : 0; + return (int64_t(element_size) < 100) ? 4 : 0; } /** -- cgit v1.2.3