diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2007-07-17 13:14:21 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2007-07-17 13:14:21 +0000 |
commit | 908a89ea099ad9f45706dcd067b34a802a01af2b (patch) | |
tree | 8483a21fab2c9d6948e13257b1d89ae88b47dbf4 /get_str.c | |
parent | 18fd47b6f5cda45525b1f4b17c3d2c2bb3456b6c (diff) | |
download | mpfr-908a89ea099ad9f45706dcd067b34a802a01af2b.tar.gz |
Added comments and fixed an indentation bug.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4642 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'get_str.c')
-rw-r--r-- | get_str.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -214,10 +214,11 @@ mpfr_get_str_aux (char *const str, mp_exp_t *const exp, mp_limb_t *const r, dir = -1; } - /* copy str1 into str and convert to ASCII */ + /* copy str1 into str and convert to characters (digits and + lowercase letters from the source character set) */ for (i = 0; i < m; i++) - str[i] = num_to_text[(int) str1[i]]; - str[m] = 0; + str[i] = num_to_text[(int) str1[i]]; /* str1[i] is an unsigned char */ + str[m] = 0; } /* mpfr_can_round_raw failed: rounding is not possible */ else |