Cleanup: UndoType: use `size_t` for memory size of structs.

This commit is contained in:
Bastien Montagne 2021-01-05 17:32:46 +01:00
parent 166c0db3f9
commit 90a26f900c
1 changed files with 4 additions and 1 deletions

View File

@ -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). */