diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-06-26 13:29:16 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-06-26 13:29:16 +0400 |
commit | 0503dc3d021bbb98a0b3a5fa9878f0a0436adcee (patch) | |
tree | 6a79a50c7d4362e8562aa0d76de94bcc6b5a73ad /source/blender/blenkernel | |
parent | 6135556f4556f0416f7ded737b26e342986ae1bf (diff) |
Forgot this in previous commit
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/library.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/library.c b/source/blender/blenkernel/intern/library.c index a5c52e9d7e8..c8173ae0513 100644 --- a/source/blender/blenkernel/intern/library.c +++ b/source/blender/blenkernel/intern/library.c @@ -1050,7 +1050,7 @@ Main *BKE_main_new(void) bmain->eval_ctx = MEM_callocN(sizeof(EvaluationContext), "EvaluationContext"); bmain->lock = MEM_mallocN(sizeof(SpinLock), "main lock"); - BLI_spin_init(bmain->lock); + BLI_spin_init((SpinLock *)bmain->lock); return bmain; } @@ -1113,7 +1113,7 @@ void BKE_main_free(Main *mainvar) } } - BLI_spin_end(mainvar->lock); + BLI_spin_end((SpinLock *)mainvar->lock); MEM_freeN(mainvar->lock); MEM_freeN(mainvar->eval_ctx); MEM_freeN(mainvar); @@ -1121,12 +1121,12 @@ void BKE_main_free(Main *mainvar) void BKE_main_lock(struct Main *bmain) { - BLI_spin_lock(bmain->lock); + BLI_spin_lock((SpinLock *) bmain->lock); } void BKE_main_unlock(struct Main *bmain) { - BLI_spin_unlock(bmain->lock); + BLI_spin_unlock((SpinLock *) bmain->lock); } /* ***************** ID ************************ */ |