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
diff options
context:
space:
mode:
authorJulian Eisel <julian@blender.org>2022-08-04 19:54:32 +0300
committerJulian Eisel <julian@blender.org>2022-08-04 19:54:32 +0300
commit11b4d0a3c3787a90e6f1631f7735d0968afbb20a (patch)
treef36a2e17d061fda14a3f95d3822c9c05e71ada8b /source/blender/makesrna
parentd730940fdb900dbb25b8b0ff0801f73348be82c9 (diff)
Attempt to fix build errors on MSVC
Same as 03cd79411924, but using a different cast (see 9b9417b66150).
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r--source/blender/makesrna/intern/rna_path.cc4
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 8d63dab3d8b..c1613e3927e 100644
--- a/source/blender/makesrna/intern/rna_path.cc
+++ b/source/blender/makesrna/intern/rna_path.cc
@@ -611,7 +611,7 @@ char *RNA_path_append(const char *path,
if (strkey) {
const int strkey_esc_max_size = (strlen(strkey) * 2) + 1;
- char *strkey_esc = BLI_array_alloca(strkey_esc, strkey_esc_max_size);
+ char *strkey_esc = static_cast<char *>(BLI_array_alloca(strkey_esc, strkey_esc_max_size));
BLI_str_escape(strkey_esc, strkey, strkey_esc_max_size);
BLI_dynstr_append(dynstr, "\"");
BLI_dynstr_append(dynstr, strkey_esc);
@@ -706,7 +706,7 @@ const char *RNA_path_array_index_token_find(const char *rna_path, const Property
/* Valid 'array part' of a rna path can only have '[', ']' and digit characters.
* It may have more than one of those (e.g. `[12][1]`) in case of multi-dimensional arrays. */
- off_t rna_path_len = (off_t)strlen(rna_path);
+ size_t rna_path_len = (size_t)strlen(rna_path);
if (rna_path[rna_path_len] != ']') {
return NULL;
}