Browse Source

Fix Clang -Wmissing-braces warning

Camilla Löwy 8 năm trước cách đây
mục cha
commit
d55c57b504
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      deps/linmath.h

+ 1 - 1
deps/linmath.h

@@ -192,7 +192,7 @@ static inline void mat4x4_rotate(mat4x4 R, mat4x4 M, float x, float y, float z,
 	vec3 u = {x, y, z};
 
 	if(vec3_len(u) > 1e-4) {
-		mat4x4 T, C, S = {0};
+		mat4x4 T, C, S = {{0}};
 
 		vec3_norm(u, u);
 		mat4x4_from_vec3_mul_outer(T, u, u);