From 293f5571d8f95f4c23723a09aad68289cd254c64 Mon Sep 17 00:00:00 2001 From: vil02 Date: Thu, 1 Feb 2024 21:30:57 +0100 Subject: [PATCH] fix: use fixed width integer types to define jule types --- api/types.hpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/api/types.hpp b/api/types.hpp index cf1ba062e..e6c4a7296 100644 --- a/api/types.hpp +++ b/api/types.hpp @@ -6,6 +6,7 @@ #define __JULE_TYPES_HPP #include +#include #include #include "platform.hpp" @@ -23,14 +24,14 @@ namespace jule typedef unsigned long long int Uintptr; #endif - typedef signed char I8; - typedef signed short int I16; - typedef signed long int I32; - typedef signed long long int I64; - typedef unsigned char U8; - typedef unsigned short int U16; - typedef unsigned long int U32; - typedef unsigned long long int U64; + using I8 = std::int8_t; + using I16 = std::int16_t; + using I32 = std::int32_t; + using I64 = std::int64_t; + using U8 = std::uint8_t; + using U16 = std::uint16_t; + using U32 = std::uint32_t; + using U64 = std::uint64_t; typedef float F32; typedef double F64; typedef bool Bool;