From 4234171e9245753f15872a6178b43d95bb9daeb4 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Tue, 21 Jun 2011 23:37:30 +1000 Subject: [PATCH] Add type_to_string for more cstdint types --- types.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/types.cpp b/types.cpp index e9c91c8f..380f871b 100644 --- a/types.cpp +++ b/types.cpp @@ -12,6 +12,16 @@ template <> std::string type_to_string (void) { return "const " #T; } do_type_to_string (float) do_type_to_string (double) +do_type_to_string ( int8_t) +do_type_to_string ( int16_t) +do_type_to_string ( int32_t) +do_type_to_string ( int64_t) + +do_type_to_string ( uint8_t) +do_type_to_string (uint16_t) +do_type_to_string (uint32_t) +do_type_to_string (uint64_t) + #ifdef WORDS_BIGENDIAN /* Big endian doesn't need swapping */ template