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:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-01-31 15:11:56 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-01-31 15:11:56 +0400
commitf07f59c760eeb2466f9f1bc74c6b4d6ba4b348d3 (patch)
tree21f3adc21819a2c7a3255f0ae2e864a5d121d6ad /source/blender/windowmanager
parent54dc5f16543a796bf400d26a4aa3dea469cd1bdb (diff)
Cache limiter will now work properly with limits >= 4Gb
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_files.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c
index 1df7f3228a0..a4c90888b74 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -277,7 +277,7 @@ static void wm_window_match_do(bContext *C, ListBase *oldwmlist)
static void wm_init_userdef(bContext *C)
{
UI_init_userdef();
- MEM_CacheLimiter_set_maximum(U.memcachelimit * 1024 * 1024);
+ MEM_CacheLimiter_set_maximum(((size_t)U.memcachelimit) * 1024 * 1024);
sound_init(CTX_data_main(C));
/* needed so loading a file from the command line respects user-pref [#26156] */