This commit is contained in:
Luis Peñaranda 2012-07-06 14:35:10 +00:00
parent fb7a7e2e95
commit 97111c3ee4
1 changed files with 1 additions and 1 deletions

View File

@ -1170,7 +1170,7 @@ std::ostream& operator<<(std::ostream& os,const Gmpfr &a){
mpfr_free_str(str);
int i = 0;
size_t n = s.length();
sizt_t k = 0;
size_t k = 0;
while (k < n && s[n-k-1] == '0') k++; // count trailing zeros
if (k == n) return os << "0";
else if (k) {