diff options
author | Martin Liska <mliska@suse.cz> | 2016-07-25 10:42:42 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2016-07-25 08:42:42 +0000 |
commit | e9e4348d68fd2a013f8b4c74b10ce8a3e551138d (patch) | |
tree | c2f0cd73d99e25bb32e2d0c61050a7b9d4d389a6 /gcc/gcov-iov.c | |
parent | aa00995cd77d50a1a2f132d1ff00257f2efadc0a (diff) | |
download | gcc-e9e4348d68fd2a013f8b4c74b10ce8a3e551138d.zip gcc-e9e4348d68fd2a013f8b4c74b10ce8a3e551138d.tar.gz gcc-e9e4348d68fd2a013f8b4c74b10ce8a3e551138d.tar.bz2 |
Adapt the numbering scheme (PR gcov-profile/64874)
PR gcov-profile/64874
* gcov-io.h: Update command about file format.
* gcov-iov.c (main): Adapt the numbering scheme.
From-SVN: r238702
Diffstat (limited to 'gcc/gcov-iov.c')
-rw-r--r-- | gcc/gcov-iov.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/gcov-iov.c b/gcc/gcov-iov.c index 202f32a..f87445a 100644 --- a/gcc/gcov-iov.c +++ b/gcc/gcov-iov.c @@ -58,9 +58,9 @@ main (int argc, char **argv) || strcmp (argv[2], "prerelease") == 0) phase = '*'; - v[0] = (major < 10 ? '0' : 'A' - 10) + major; - v[1] = (minor / 10) + '0'; - v[2] = (minor % 10) + '0'; + v[0] = (major / 10) + 'A'; + v[1] = (major % 10) + '0'; + v[2] = minor + '0'; v[3] = phase; for (ix = 0; ix != 4; ix++) |