diff options
author | Jacques Lucke <jacques@blender.org> | 2020-07-09 16:29:25 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-07-09 16:29:25 +0300 |
commit | 31ad43a3c7dde771cb6d92b6d20bf7b2e3f2bed6 (patch) | |
tree | 39fa3dfb73720bbea8d4d5f19a201d9612ec1115 /source | |
parent | 544c435fdd2b3fe0c688c1d8715dec7d0d4f90a7 (diff) |
Blenloader: make BLO_read_data_address work in C++
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenloader/BLO_read_write.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenloader/BLO_read_write.h b/source/blender/blenloader/BLO_read_write.h index 59116b4eefc..7c9738b67c5 100644 --- a/source/blender/blenloader/BLO_read_write.h +++ b/source/blender/blenloader/BLO_read_write.h @@ -180,7 +180,7 @@ bool BLO_write_is_undo(BlendWriter *writer); void *BLO_read_get_new_data_address(BlendDataReader *reader, const void *old_address); #define BLO_read_data_address(reader, ptr_p) \ - *(ptr_p) = BLO_read_get_new_data_address((reader), *(ptr_p)) + *((void **)ptr_p) = BLO_read_get_new_data_address((reader), *(ptr_p)) typedef void (*BlendReadListFn)(BlendDataReader *reader, void *data); void BLO_read_list_cb(BlendDataReader *reader, struct ListBase *list, BlendReadListFn callback); |