From 57db4eeeb027a1bd0f0657d41a6286fc1304ddc3 Mon Sep 17 00:00:00 2001 From: Thompson Lee Date: Sun, 31 Jul 2016 01:03:51 -0400 Subject: [PATCH] Wait... There's bool used.... --- include/c3d/maths.h | 2 +- source/maths/mtx_inverse.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/c3d/maths.h b/include/c3d/maths.h index c461801..f41b33d 100644 --- a/include/c3d/maths.h +++ b/include/c3d/maths.h @@ -62,7 +62,7 @@ static inline void Mtx_Copy(C3D_Mtx* out, const C3D_Mtx* in) void Mtx_Identity(C3D_Mtx* out); void Mtx_Multiply(C3D_Mtx* out, const C3D_Mtx* a, const C3D_Mtx* b); -int Mtx_Inverse(C3D_Mtx* out); +bool Mtx_Inverse(C3D_Mtx* out); void Mtx_Translate(C3D_Mtx* mtx, float x, float y, float z); void Mtx_Scale(C3D_Mtx* mtx, float x, float y, float z); diff --git a/source/maths/mtx_inverse.c b/source/maths/mtx_inverse.c index 938da3e..f8874f0 100644 --- a/source/maths/mtx_inverse.c +++ b/source/maths/mtx_inverse.c @@ -1,6 +1,6 @@ #include -int Mtx_Inverse(C3D_Mtx* out) +bool Mtx_Inverse(C3D_Mtx* out) { float inv[16], det; int i; @@ -125,9 +125,9 @@ int Mtx_Inverse(C3D_Mtx* out) for (i = 0; i < 16; i++) out->m[i] = inv[i] * det; - return 0; + return true; } - return -1; + return false; }