summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--set_str_raw.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/set_str_raw.c b/set_str_raw.c
index bef006126..8885dda4c 100644
--- a/set_str_raw.c
+++ b/set_str_raw.c
@@ -26,6 +26,7 @@ mpfr_set_str_raw(mpfr_ptr x, char *str)
str0 = str2 = (char *) malloc(strlen(str)*sizeof(char));
if (*str == '-') { negative = 1; str++; }
+ else if (*str == '+') str++;
while (*str == '0') { str++; }