Merge pull request #473 from dbabokin/win_test
Avoid double spaces in error messages to get same messages on Win and Unix
This commit is contained in:
2
decl.cpp
2
decl.cpp
@@ -157,7 +157,7 @@ DeclSpecs::GetBaseType(SourcePos pos) const {
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
else if (soaWidth <= 0 || (soaWidth & (soaWidth - 1)) != 0) {
|
else if (soaWidth <= 0 || (soaWidth & (soaWidth - 1)) != 0) {
|
||||||
Error(pos, "soa<%d> width illegal. Value must be positive power "
|
Error(pos, "soa<%d> width illegal. Value must be positive power "
|
||||||
"of two.", soaWidth);
|
"of two.", soaWidth);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
2
parse.yy
2
parse.yy
@@ -567,7 +567,7 @@ rate_qualified_type_specifier
|
|||||||
$$ = NULL;
|
$$ = NULL;
|
||||||
}
|
}
|
||||||
else if (soaWidth <= 0 || (soaWidth & (soaWidth - 1)) != 0) {
|
else if (soaWidth <= 0 || (soaWidth & (soaWidth - 1)) != 0) {
|
||||||
Error(@1, "soa<%d> width illegal. Value must be positive power "
|
Error(@1, "soa<%d> width illegal. Value must be positive power "
|
||||||
"of two.", soaWidth);
|
"of two.", soaWidth);
|
||||||
$$ = NULL;
|
$$ = NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user