summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2024-02-14 01:07:10 +0100
committerMitya Selivanov <automainint@guattari.tech>2024-02-14 01:07:10 +0100
commitd0c2e327561618241ac7f198fdaa797d6d9a6b7a (patch)
tree86c9ee5500e7bffb38a7238b356c648fbc691816 /source
parent28b9d2236753645a96e94fb35724e16d93876206 (diff)
downloadkit-d0c2e327561618241ac7f198fdaa797d6d9a6b7a.zip
Fix char type
Diffstat (limited to 'source')
-rw-r--r--source/kit/math.h5
-rw-r--r--source/kit/types.h4
2 files changed, 5 insertions, 4 deletions
diff --git a/source/kit/math.h b/source/kit/math.h
index 3a55276..d7044f1 100644
--- a/source/kit/math.h
+++ b/source/kit/math.h
@@ -14,6 +14,7 @@
// TODO
// - Gamma correction.
// - Custom prefixes
+// - Unnecesary XYZ scaling.
#ifdef __cplusplus
extern "C" {
@@ -39,11 +40,11 @@ extern "C" {
typedef KIT_VEC_TYPE vec_t;
-typedef union {
+typedef struct {
vec_t v[2];
} vec2_t;
-typedef union {
+typedef struct {
vec_t v[3];
} vec3_t;
diff --git a/source/kit/types.h b/source/kit/types.h
index cbb9a71..bbe8717 100644
--- a/source/kit/types.h
+++ b/source/kit/types.h
@@ -26,8 +26,8 @@ typedef double f64;
// chars
//
-typedef signed char c8;
-typedef signed int c32;
+typedef char c8;
+typedef int c32;
typedef signed char b8; // 8-bit boolean
typedef signed int b32; // 32-bit boolean