diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-02-08 11:08:29 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-02-08 11:08:29 +0100 |
commit | cfd3b640711a3abb9bb0ff39b959e91eeef2ffd0 (patch) | |
tree | 9d7918bd6865a8e8f420327b7de21d6950e06979 /inc | |
parent | 0169f0265104b1da3500fa006a4a654d7812808d (diff) | |
download | abrt-cfd3b640711a3abb9bb0ff39b959e91eeef2ffd0.tar.gz abrt-cfd3b640711a3abb9bb0ff39b959e91eeef2ffd0.tar.xz abrt-cfd3b640711a3abb9bb0ff39b959e91eeef2ffd0.zip |
fix my goof in to_string()
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'inc')
-rw-r--r-- | inc/abrtlib.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/inc/abrtlib.h b/inc/abrtlib.h index 5e0dc462..443c3725 100644 --- a/inc/abrtlib.h +++ b/inc/abrtlib.h @@ -261,12 +261,12 @@ double get_dirsize_find_largest_dir( std::string unsigned_to_string(unsigned long long x); std::string signed_to_string(long long x); -template <class T> +template <class T> inline std::string to_string(T x) { - if (T(~T(0)) < T(0)) /* T is a signed type */ - return unsigned_to_string(x); - return signed_to_string(x); + if ((T)~(T)0 < (T)0) /* T is a signed type */ + return signed_to_string(x); + return unsigned_to_string(x); } void parse_args(const char *psArgs, vector_string_t& pArgs, int quote = -1); |