summaryrefslogtreecommitdiff
path: root/get_str.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2007-07-17 13:14:21 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2007-07-17 13:14:21 +0000
commit908a89ea099ad9f45706dcd067b34a802a01af2b (patch)
tree8483a21fab2c9d6948e13257b1d89ae88b47dbf4 /get_str.c
parent18fd47b6f5cda45525b1f4b17c3d2c2bb3456b6c (diff)
downloadmpfr-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.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/get_str.c b/get_str.c
index 2cdf1c7ce..e6c8d17fa 100644
--- a/get_str.c
+++ b/get_str.c
@@ -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