diff options
author | Eric Biederman <ebiederm@xmission.com> | 2003-04-26 03:20:53 +0000 |
---|---|---|
committer | Eric Biederman <ebiederm@xmission.com> | 2003-04-26 03:20:53 +0000 |
commit | ab2ea6b474b6584b8e12eb2b6ac698de05d5efc9 (patch) | |
tree | be48991c49d65dafe6c00ad564c4eb1eeeca40bd /util/romcc | |
parent | 2c791ce2c104b529be4485b8480a2ad85ec32d51 (diff) | |
download | coreboot-ab2ea6b474b6584b8e12eb2b6ac698de05d5efc9.tar.xz |
- misc minor fixes
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@802 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/romcc')
-rw-r--r-- | util/romcc/romcc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/romcc/romcc.c b/util/romcc/romcc.c index 29df259edd..0f1367cef6 100644 --- a/util/romcc/romcc.c +++ b/util/romcc/romcc.c @@ -6063,8 +6063,8 @@ static struct triple *string_constant(struct compile_state *state) tk = &state->token[0]; str = tk->val.str + 1; str_len = tk->str_len - 2; - if (str_len <= 0) { - error(state, 0, "empty string constant"); + if (str_len < 0) { + error(state, 0, "negative string constant length"); } end = str + str_len; ptr = buf; |