diff --git a/source/blender/blenkernel/intern/ocean.cc b/source/blender/blenkernel/intern/ocean.cc index 4d0896aa795..1ff5ce7df9e 100644 --- a/source/blender/blenkernel/intern/ocean.cc +++ b/source/blender/blenkernel/intern/ocean.cc @@ -1601,7 +1601,7 @@ void BKE_ocean_simulate(struct Ocean * /*o*/, float /*t*/, float /*scale*/, floa struct Ocean *BKE_ocean_add(void) { - Ocean *oc = MEM_callocN(sizeof(Ocean), "ocean sim data"); + Ocean *oc = static_cast(MEM_callocN(sizeof(Ocean), "ocean sim data")); return oc; } @@ -1673,7 +1673,7 @@ OceanCache *BKE_ocean_init_cache(const char * /*bakepath*/, float /*foam_fade*/, int /*resolution*/) { - OceanCache *och = MEM_callocN(sizeof(OceanCache), "ocean cache data"); + OceanCache *och = static_cast(MEM_callocN(sizeof(OceanCache), "ocean cache data")); return och; }