diff options
author | Jakub Jelinek <jakub@redhat.com> | 2017-01-06 19:40:31 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2017-01-06 19:40:31 +0100 |
commit | 9a38f84e274c6724172ec676285277a3003336ee (patch) | |
tree | 27ade0bdd20eee4c8e91ba05efc33c02721129fb /gcc/read-rtl.c | |
parent | f55a925e025fa0f15129489aee38a55ecc619a85 (diff) | |
download | gcc-9a38f84e274c6724172ec676285277a3003336ee.zip gcc-9a38f84e274c6724172ec676285277a3003336ee.tar.gz gcc-9a38f84e274c6724172ec676285277a3003336ee.tar.bz2 |
read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
* read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare
warning.
From-SVN: r244178
Diffstat (limited to 'gcc/read-rtl.c')
-rw-r--r-- | gcc/read-rtl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/read-rtl.c b/gcc/read-rtl.c index e9c8068..2a8650b 100644 --- a/gcc/read-rtl.c +++ b/gcc/read-rtl.c @@ -1255,7 +1255,7 @@ rtx_reader::read_rtx_code (const char *code_name) if (strcmp (code_name, "reuse_rtx") == 0) { read_name (&name); - long idx = atoi (name.string); + unsigned idx = atoi (name.string); /* Look it up by ID. */ gcc_assert (idx < m_reuse_rtx_by_id.length ()); return_rtx = m_reuse_rtx_by_id[idx]; |