projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e63a5fc
)
Fix last commit.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Tue, 18 Nov 2008 19:29:37 +0000
(19:29 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Tue, 18 Nov 2008 19:29:37 +0000
(19:29 +0000)
[r23779]
parser.c
patch
|
blob
|
history
diff --git
a/parser.c
b/parser.c
index
a07ee45
..
39e5dce
100644
(file)
--- a/
parser.c
+++ b/
parser.c
@@
-9790,7
+9790,7
@@
static void check_conditon_type(expression_t const *const expr,
{
type_t *const type = skip_typeref(expr->base.type);
/* ยง6.8.5:2 */
- if (is_type_scalar(type) && is_type_valid(type)) {
+ if (
!
is_type_scalar(type) && is_type_valid(type)) {
errorf(&expr->base.source_position,
"condition of %s statement must have scalar type", stmt_name);
}