diff options
Diffstat (limited to 'cxx/osdoprnti.cc')
-rw-r--r-- | cxx/osdoprnti.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cxx/osdoprnti.cc b/cxx/osdoprnti.cc index e762d4e37..fefb060c5 100644 --- a/cxx/osdoprnti.cc +++ b/cxx/osdoprnti.cc @@ -56,6 +56,6 @@ __gmp_doprnt_integer_ostream (ostream &o, struct doprnt_params_t *p, __gmp_asprintf_final (&d); (*__gmp_free_func) (s, strlen(s)+1); - gmp_allocated_string alloc = result; - return o.write (result, strlen (result)); + gmp_allocated_string t (result); + return o.write (t.str, t.len); } |