diff options
author | Torbjorn Granlund <tege@gmplib.org> | 2010-11-22 22:26:05 +0100 |
---|---|---|
committer | Torbjorn Granlund <tege@gmplib.org> | 2010-11-22 22:26:05 +0100 |
commit | 198a1add0f2d556eb75bf2d85c7fceb9fafe9f51 (patch) | |
tree | c4fa3b97e983d3f057c0ba032faf39fe303d8f3b /mpf | |
parent | d7afa9ea9c7dae166cb6719c3b11db9c96cca519 (diff) | |
download | gmp-198a1add0f2d556eb75bf2d85c7fceb9fafe9f51.tar.gz |
Whitespace cleanup.
Diffstat (limited to 'mpf')
-rw-r--r-- | mpf/get_str.c | 4 | ||||
-rw-r--r-- | mpf/set_str.c | 14 |
2 files changed, 9 insertions, 9 deletions
diff --git a/mpf/get_str.c b/mpf/get_str.c index 9b466f5e1..cdadbacc3 100644 --- a/mpf/get_str.c +++ b/mpf/get_str.c @@ -144,9 +144,9 @@ mpf_get_str (char *dbuf, mp_exp_t *exp, int base, size_t n_digits, mpf_srcptr u) { base = -base; if (base <= 1) - base = 10; + base = 10; else if (base > 36) - return NULL; + return NULL; num_to_text = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; } diff --git a/mpf/set_str.c b/mpf/set_str.c index f9f1c4a50..214ecceb2 100644 --- a/mpf/set_str.c +++ b/mpf/set_str.c @@ -163,8 +163,8 @@ mpf_set_str (mpf_ptr x, const char *str, int base) { /* not a digit, must be a decimal point */ for (i = 0; i < pointlen; i++) - if (str[i] != point[i]) - return -1; + if (str[i] != point[i]) + return -1; if (digit_value[(unsigned char) str[pointlen]] >= (base == 0 ? 10 : base)) return -1; } @@ -195,10 +195,10 @@ mpf_set_str (mpf_ptr x, const char *str, int base) { int dig; - for (j = 0; j < pointlen; j++) - if (str[j] != point[j]) - goto not_point; - if (1) + for (j = 0; j < pointlen; j++) + if (str[j] != point[j]) + goto not_point; + if (1) { if (dotpos != 0) { @@ -212,7 +212,7 @@ mpf_set_str (mpf_ptr x, const char *str, int base) } else { - not_point: + not_point: dig = digit_value[c]; if (dig >= base) { |