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:
authorJacques Lucke <jacques@blender.org>2020-07-20 15:03:52 +0300
committerJacques Lucke <jacques@blender.org>2020-07-20 15:04:09 +0300
commit230f7d79ce3e82c27d91562558752fe4331b9dc2 (patch)
treeaf14928b2c32101005b58448a2635b63c92a7a69 /source/blender/blenlib/BLI_allocator.hh
parentcbf22782666662b35b4d3ed1b1116d96b586083c (diff)
Fix signed/unsigned comparison
Diffstat (limited to 'source/blender/blenlib/BLI_allocator.hh')
-rw-r--r--source/blender/blenlib/BLI_allocator.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_allocator.hh b/source/blender/blenlib/BLI_allocator.hh
index ec82e5ab71c..d49b98cb33b 100644
--- a/source/blender/blenlib/BLI_allocator.hh
+++ b/source/blender/blenlib/BLI_allocator.hh
@@ -85,7 +85,7 @@ class RawAllocator {
void *used_ptr = (void *)((uintptr_t)POINTER_OFFSET(ptr, alignment + sizeof(MemHead)) &
~((uintptr_t)alignment - 1));
int offset = (int)((uintptr_t)used_ptr - (uintptr_t)ptr);
- BLI_assert(offset >= sizeof(MemHead));
+ BLI_assert((size_t)offset >= sizeof(MemHead));
((MemHead *)used_ptr - 1)->offset = (int)offset;
return used_ptr;
}