[Bf-blender-cvs] [90a26f900c1] master: Cleanup: UndoType: use `size_t` for memory size of structs.
Bastien Montagne
noreply at git.blender.org
Tue Jan 5 18:21:14 CET 2021
Commit: 90a26f900c18f12e5d41590fb9ce1ea4933c4989
Author: Bastien Montagne
Date: Tue Jan 5 17:32:46 2021 +0100
Branches: master
https://developer.blender.org/rB90a26f900c18f12e5d41590fb9ce1ea4933c4989
Cleanup: UndoType: use `size_t` for memory size of structs.
===================================================================
M source/blender/blenkernel/BKE_undo_system.h
===================================================================
diff --git a/source/blender/blenkernel/BKE_undo_system.h b/source/blender/blenkernel/BKE_undo_system.h
index b13a0580a55..fff6c73fafa 100644
--- a/source/blender/blenkernel/BKE_undo_system.h
+++ b/source/blender/blenkernel/BKE_undo_system.h
@@ -142,7 +142,10 @@ typedef struct UndoType {
bool use_context;
- int step_size;
+ /**
+ * The size of the undo struct 'inherited' from #UndoStep for that specific type. Used for
+ * generic allocation in BKE's `undo_system.c`. */
+ size_t step_size;
} UndoType;
/* Expose since we need to perform operations on specific undo types (rarely). */
More information about the Bf-blender-cvs
mailing list