Commit 15962a44 authored by Benoit Perrot's avatar Benoit Perrot
Browse files

2005-04-21 Benoît Perrot <benoit@lrde.epita.fr>

	* dec/parse-asm-scan-gen.py: Explicitely dispatch on signed
	integer when reading one from a string, by checking its first
	character (g++-3.4 considers converting "-1" into an "(unsigned&) i"
	as an error, whereas g++-3.3 did not).
parent ef64d710
2005-04-21 Benoît Perrot <benoit@lrde.epita.fr>
* dec/parse-asm-scan-gen.py: Explicitely dispatch on signed
integer when reading one from a string, by checking its first
character (g++-3.4 considers converting "-1" into an "(unsigned&) i"
as an error, whereas g++-3.3 did not).
2005-04-15 Benoît Perrot <benoit@lrde.epita.fr>
Remove size limitation of data sections.
......
......@@ -158,7 +158,12 @@ print """
-?{dec_int} {
std::istringstream iss(yytext);
if (iss.peek() == '-')
iss >> std::dec >> yylval->i;
else
iss >> std::dec >> (unsigned&) yylval->i;
if (iss.fail())
{
std::cerr << *yylloc
......@@ -170,7 +175,12 @@ print """
}
-?{hex_int} {
std::istringstream iss(yytext);
if (iss.peek() == '-')
iss >> std::hex >> yylval->i;
else
iss >> std::hex >> (unsigned&) yylval->i;
if (iss.fail())
{
std::cerr << *yylloc
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment