cpplex.c (cpp_interpret_charconst): Use HOST_WIDE_INT for sign extension.
authorAndreas Jaeger <aj@gcc.gnu.org>
Fri, 23 Nov 2001 10:01:16 +0000 (11:01 +0100)
committerAndreas Jaeger <aj@gcc.gnu.org>
Fri, 23 Nov 2001 10:01:16 +0000 (11:01 +0100)
commite1e7d56bf1be024a7c5b08f98d5ea524cc5ad64f
treee30331aeeafe31dbc96305e0796708b4684534c6
parent56101178c86f22b17a462d8bc50429fbb0c850b5
cpplex.c (cpp_interpret_charconst): Use HOST_WIDE_INT for sign extension.

* cpplex.c (cpp_interpret_charconst): Use HOST_WIDE_INT for sign
extension.

* gcc.dg/cpp/charconst-2.c: New test.

From-SVN: r47286
gcc/ChangeLog
gcc/cpplex.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/charconst-2.c [new file with mode: 0644]