diff options
author | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-09-21 11:46:11 +0000 |
---|---|---|
committer | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-09-21 11:46:11 +0000 |
commit | 4321457550636d508bf623a6ae1704ce7b1bac9a (patch) | |
tree | 5609c9de475eed194fe10ad97a714d6328331e34 /strtofr.c | |
parent | 2224778893966ca26eaa1de2f7de03e04f10aa03 (diff) | |
download | mpfr-4321457550636d508bf623a6ae1704ce7b1bac9a.tar.gz |
Add a new test and clarify a comment.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2981 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'strtofr.c')
-rw-r--r-- | strtofr.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -325,7 +325,10 @@ parse_string (mpfr_t x, struct parsed_string *pstr, if (pstr->prec == 0) { /* Check if there was a prefix (in such a case, we have to read - again the mantissa without skipping the prefix) */ + again the mantissa without skipping the prefix) + The allocated mantissa is still enought big since we will + read only 0, and we alloc one more char than needed. + FIXME: Not really friendly. Maybe cleaner code? */ if (prefix_str != NULL) { str = prefix_str; |