- misc minor fixes
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@802 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
@@ -6063,8 +6063,8 @@ static struct triple *string_constant(struct compile_state *state)
|
|||||||
tk = &state->token[0];
|
tk = &state->token[0];
|
||||||
str = tk->val.str + 1;
|
str = tk->val.str + 1;
|
||||||
str_len = tk->str_len - 2;
|
str_len = tk->str_len - 2;
|
||||||
if (str_len <= 0) {
|
if (str_len < 0) {
|
||||||
error(state, 0, "empty string constant");
|
error(state, 0, "negative string constant length");
|
||||||
}
|
}
|
||||||
end = str + str_len;
|
end = str + str_len;
|
||||||
ptr = buf;
|
ptr = buf;
|
||||||
|
Reference in New Issue
Block a user