Fix some trivial warnings

This commit is contained in:
Christoph Hertzberg
2015-08-19 21:38:18 +02:00
parent 0721690dbb
commit 1bdd06a199
3 changed files with 5 additions and 5 deletions

View File

@@ -334,10 +334,10 @@ public:
#if defined (MPREAL_HAVE_EXPLICIT_CONVERTERS)
explicit operator bool () const { return toBool(); }
explicit operator int () const { return toLong(); }
explicit operator int () const { return int(toLong()); }
explicit operator long () const { return toLong(); }
explicit operator long long () const { return toLong(); }
explicit operator unsigned () const { return toULong(); }
explicit operator unsigned () const { return unsigned(toULong()); }
explicit operator unsigned long () const { return toULong(); }
explicit operator unsigned long long () const { return toULong(); }
explicit operator float () const { return toFloat(); }