diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-11-15 18:31:26 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-11-15 18:31:26 +0300 |
commit | 9d52ff1ced73e737e5e395731a8cc1d8afa16acd (patch) | |
tree | c6449c3fac09207d0f1d56fd13993f91d8401363 /source/blender/blenkernel/intern | |
parent | 61ee2f0db8ed5ff19f74dd06fb3a3a77f9636ee6 (diff) |
Fix strict compiler warnings/errors
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/unit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/unit.c b/source/blender/blenkernel/intern/unit.c index da13029bcdf..5527cb5d39a 100644 --- a/source/blender/blenkernel/intern/unit.c +++ b/source/blender/blenkernel/intern/unit.c @@ -947,11 +947,11 @@ const char *bUnit_GetNameDisplay(const void *usys_pt, int index) } const char *bUnit_GetIdentifier(const void *usys_pt, int index) { - bUnitDef *unit = ((bUnitCollection *)usys_pt)->units + index; + const bUnitDef *unit = ((const bUnitCollection *)usys_pt)->units + index; if (unit->identifier == NULL) { BLI_assert(false && "identifier for this unit is not specified yet"); } - return unit->identifier;; + return unit->identifier; } double bUnit_GetScaler(const void *usys_pt, int index) |