From c203a744febf70bcdbf8a7116db76f313604b180 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Wed, 4 Mar 2020 17:22:20 +0100 Subject: [PATCH] glm: fix calloc --- vlib/glm/glm.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/glm/glm.v b/vlib/glm/glm.v index ba6c18a6d8..ac6dcc835f 100644 --- a/vlib/glm/glm.v +++ b/vlib/glm/glm.v @@ -131,7 +131,7 @@ fn rotate(m Mat4, angle f32, vec Vec3) Mat4 { */ fn f32_calloc(n int) &f32 { - return &f32(calloc(n * sizeof(f32))) + return &f32(vcalloc(n * sizeof(f32))) } // fn translate(vec Vec3) *f32 { pub fn translate(m Mat4, v Vec3) Mat4 {