diff options
Diffstat (limited to '')
-rw-r--r-- | src/trace.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/trace.cpp b/src/trace.cpp index b328565..dab53d6 100644 --- a/src/trace.cpp +++ b/src/trace.cpp | |||
@@ -58,7 +58,7 @@ template<> void Bu::__tracer_format<char>( const char &v ) | |||
58 | { | 58 | { |
59 | printf("%hhd", v ); | 59 | printf("%hhd", v ); |
60 | } | 60 | } |
61 | 61 | /* | |
62 | template<> void Bu::__tracer_format<long>( const long &v ) | 62 | template<> void Bu::__tracer_format<long>( const long &v ) |
63 | { | 63 | { |
64 | printf("%ld", v ); | 64 | printf("%ld", v ); |
@@ -67,7 +67,7 @@ template<> void Bu::__tracer_format<long>( const long &v ) | |||
67 | template<> void Bu::__tracer_format<unsigned long>( const unsigned long &v ) | 67 | template<> void Bu::__tracer_format<unsigned long>( const unsigned long &v ) |
68 | { | 68 | { |
69 | printf("%lu", v ); | 69 | printf("%lu", v ); |
70 | } | 70 | }*/ |
71 | 71 | ||
72 | template<> void Bu::__tracer_format<float>( const float &v ) | 72 | template<> void Bu::__tracer_format<float>( const float &v ) |
73 | { | 73 | { |
@@ -81,7 +81,7 @@ template<> void Bu::__tracer_format<double>( const double &v ) | |||
81 | 81 | ||
82 | template<> void Bu::__tracer_format<void *>( void * const &v ) | 82 | template<> void Bu::__tracer_format<void *>( void * const &v ) |
83 | { | 83 | { |
84 | printf("0x%08X", (unsigned int)v ); | 84 | printf("0x%08X", (ptrdiff_t)v ); |
85 | } | 85 | } |
86 | 86 | ||
87 | template<> void Bu::__tracer_format<char *>( char * const &v ) | 87 | template<> void Bu::__tracer_format<char *>( char * const &v ) |
@@ -99,7 +99,7 @@ template<> void Bu::__tracer_format<char **>( char ** const &v ) | |||
99 | 99 | ||
100 | template<> void Bu::__tracer_format<void const *>( void const * const &v ) | 100 | template<> void Bu::__tracer_format<void const *>( void const * const &v ) |
101 | { | 101 | { |
102 | printf("0x%08X", (unsigned int)v ); | 102 | printf("0x%08X", (ptrdiff_t)v ); |
103 | } | 103 | } |
104 | 104 | ||
105 | template<> void Bu::__tracer_format<char const *>( char const * const &v ) | 105 | template<> void Bu::__tracer_format<char const *>( char const * const &v ) |