diff options
author | Campbell Barton <campbell@blender.org> | 2022-09-25 13:27:46 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-09-25 15:31:31 +0300 |
commit | 21d77a417e17ac92bfc10dbd742c867d4019ce69 (patch) | |
tree | ec664b5c6ca7882bcc5a1e1ce09cad67b842af9d /source/blender/makesrna | |
parent | d35a10134cfdbd3e24a56218ef3f05aac2a2fc7e (diff) |
Cleanup: replace C-style casts with functional casts for numeric types
Some changes missed from f68cfd6bb078482c4a779a6e26a56e2734edb5b8.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_path.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_path.cc b/source/blender/makesrna/intern/rna_path.cc index 96f46f5dbe6..e555368561b 100644 --- a/source/blender/makesrna/intern/rna_path.cc +++ b/source/blender/makesrna/intern/rna_path.cc @@ -708,7 +708,7 @@ const char *RNA_path_array_index_token_find(const char *rna_path, const Property if (UNLIKELY(rna_path[0] == '\0')) { return nullptr; } - size_t rna_path_len = (size_t)strlen(rna_path) - 1; + size_t rna_path_len = size_t(strlen(rna_path)) - 1; if (rna_path[rna_path_len] != ']') { return nullptr; } @@ -861,7 +861,7 @@ static char *rna_idp_path(PointerRNA *ptr, IDProperty *array = IDP_IDPArray(iter); if (needle >= array && needle < (iter->len + array)) { /* found! */ link.name = iter->name; - link.index = (int)(needle - array); + link.index = int(needle - array); path = rna_idp_path_create(&link); break; } |