diff --git a/types.hpp b/types.hpp index 5e5d8c40..2f823aaa 100644 --- a/types.hpp +++ b/types.hpp @@ -58,27 +58,51 @@ template struct sign_types; -template <> struct sign_types { - typedef signed int with_sign; - typedef unsigned int without_sign; +template <> struct sign_types { + typedef int8_t with_sign; + typedef uint8_t without_sign; }; -template <> struct sign_types { - typedef signed int with_sign; - typedef unsigned int without_sign; +template <> struct sign_types { + typedef int8_t with_sign; + typedef uint8_t without_sign; }; -template <> struct sign_types { - typedef ssize_t with_sign; - typedef size_t without_sign; +template <> struct sign_types { + typedef int16_t with_sign; + typedef uint16_t without_sign; }; -template <> struct sign_types { - typedef ssize_t with_sign; - typedef size_t without_sign; +template <> struct sign_types { + typedef int16_t with_sign; + typedef uint16_t without_sign; +}; + + +template <> struct sign_types { + typedef int32_t with_sign; + typedef uint32_t without_sign; +}; + + +template <> struct sign_types { + typedef int32_t with_sign; + typedef uint32_t without_sign; +}; + + +template <> struct sign_types { + typedef signed long with_sign; + typedef unsigned long without_sign; +}; + + +template <> struct sign_types { + typedef signed long with_sign; + typedef unsigned long without_sign; };