From d0c2e327561618241ac7f198fdaa797d6d9a6b7a Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Wed, 14 Feb 2024 01:07:10 +0100 Subject: Fix char type --- source/kit/math.h | 5 +++-- source/kit/types.h | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'source') 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 -- cgit v1.2.3