diff options
author | Michael Stapelberg <stapelberg@debian.org> | 2014-06-19 09:23:02 +0200 |
---|---|---|
committer | Michael Stapelberg <stapelberg@debian.org> | 2014-06-19 09:23:02 +0200 |
commit | 8fcc691d6fa80c9ddf38bf0d34b803bab0e421d5 (patch) | |
tree | ba71646a10b518372d110532d86fcf0b98edc14f /src/lib9/fmt/fltfmt.c | |
parent | 3bb719bbf3cdb97b3901f3baaa2da9d02a5c3cdb (diff) | |
parent | 8a39ee361feb9bf46d728ff1ba4f07ca1d9610b1 (diff) | |
download | golang-8fcc691d6fa80c9ddf38bf0d34b803bab0e421d5.tar.gz |
Merge tag 'upstream/1.3' into debian-sid
Upstream version 1.3
Diffstat (limited to 'src/lib9/fmt/fltfmt.c')
-rw-r--r-- | src/lib9/fmt/fltfmt.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib9/fmt/fltfmt.c b/src/lib9/fmt/fltfmt.c index dec6f8480..6fe819221 100644 --- a/src/lib9/fmt/fltfmt.c +++ b/src/lib9/fmt/fltfmt.c @@ -154,6 +154,7 @@ xsub1(char *a, int n) * so that it has a nonzero first digit. */ abort(); + return 0; } /* @@ -180,7 +181,7 @@ xfmtexp(char *p, int e, int ucase) se[i++] = '0'; while(i > 0) *p++ = se[--i]; - *p++ = '\0'; + *p = '\0'; } /* @@ -192,7 +193,8 @@ xfmtexp(char *p, int e, int ucase) static void xdtoa(double f, char *s, int *exp, int *neg, int *ns) { - int d, e2, e, ee, i, ndigit, oerrno; + int d, e2, e, ee, i, ndigit; + int oerrno; char c; char tmp[NSIGNIF+10]; double g; |