summaryrefslogtreecommitdiff
path: root/src/inp_str.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2008-11-17 12:47:14 +0000
committerzimmerma <zimmerma@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2008-11-17 12:47:14 +0000
commit0e09d16146daa9a74d9fd1f47991668d82cf6118 (patch)
tree5fc52f6c662c23e257b8044c0af193ab2529850a /src/inp_str.c
parent8e8076b510016f82a5afd289bebbb44436b3af6b (diff)
downloadmpc-0e09d16146daa9a74d9fd1f47991668d82cf6118.tar.gz
[inp_str.c] allow i for imaginary part (in addition to I)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@323 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'src/inp_str.c')
-rw-r--r--src/inp_str.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inp_str.c b/src/inp_str.c
index ed14994..18847cd 100644
--- a/src/inp_str.c
+++ b/src/inp_str.c
@@ -63,7 +63,7 @@ mpc_inp_str (mpc_ptr rop, FILE *stream, int base, mpc_rnd_t rnd_mode)
c = getc (stream);
size ++;
- if (c != 'I')
+ if (c != 'I' && c != 'i')
return 0; /* error */
c = getc (stream);