From 9fae17d7715314a3a20259ac2e87aa500a977695 Mon Sep 17 00:00:00 2001 From: Iliyas Jorio Date: Wed, 26 Jul 2023 07:36:46 +0200 Subject: [PATCH] Use stdint.h types for basic integer typedefs (#8) --- src/PommeTypes.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/PommeTypes.h b/src/PommeTypes.h index 07f5199..b6e6f02 100644 --- a/src/PommeTypes.h +++ b/src/PommeTypes.h @@ -6,18 +6,18 @@ //----------------------------------------------------------------------------- // Integer types -typedef char SignedByte; -typedef char SInt8; -typedef short SInt16; -typedef int SInt32; -typedef long long SInt64; +typedef int8_t SignedByte; +typedef int8_t SInt8; +typedef int16_t SInt16; +typedef int32_t SInt32; +typedef int64_t SInt64; -typedef unsigned char Byte; -typedef unsigned char UInt8; -typedef unsigned char Boolean; -typedef unsigned short UInt16; -typedef unsigned int UInt32; -typedef unsigned long long UInt64; +typedef uint8_t Byte; +typedef uint8_t UInt8; +typedef uint8_t Boolean; +typedef uint16_t UInt16; +typedef uint32_t UInt32; +typedef uint64_t UInt64; #if __BIG_ENDIAN__ typedef struct { UInt32 hi, lo; } UnsignedWide;