[Bf-blender-cvs] [0f159b7] input_method_editor: Fix BLI_Bitmap - was not usable in BKE area (strict compile flags).
Bastien Montagne
noreply at git.blender.org
Mon Nov 24 00:45:45 CET 2014
Commit: 0f159b730669595ff81c477e4de4cc826a7f2c3c
Author: Bastien Montagne
Date: Sun Nov 23 20:51:08 2014 +0100
Branches: input_method_editor
https://developer.blender.org/rB0f159b730669595ff81c477e4de4cc826a7f2c3c
Fix BLI_Bitmap - was not usable in BKE area (strict compile flags).
===================================================================
M source/blender/blenlib/BLI_bitmap.h
===================================================================
diff --git a/source/blender/blenlib/BLI_bitmap.h b/source/blender/blenlib/BLI_bitmap.h
index 594bf89..e4c6254 100644
--- a/source/blender/blenlib/BLI_bitmap.h
+++ b/source/blender/blenlib/BLI_bitmap.h
@@ -47,7 +47,7 @@ typedef unsigned int BLI_bitmap;
/* size (in bytes) used to hold '_tot' bits */
#define BLI_BITMAP_SIZE(_tot) \
- (_BITMAP_NUM_BLOCKS(_tot) * sizeof(BLI_bitmap))
+ ((size_t)(_BITMAP_NUM_BLOCKS(_tot)) * sizeof(BLI_bitmap))
/* allocate memory for a bitmap with '_tot' bits; free
* with MEM_freeN() */
More information about the Bf-blender-cvs
mailing list