projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a2a725
)
&& and || accept scalar types, not only arithmetic types.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Sat, 17 Nov 2007 15:49:03 +0000
(15:49 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Sat, 17 Nov 2007 15:49:03 +0000
(15:49 +0000)
[r18445]
parser.c
patch
|
blob
|
history
diff --git
a/parser.c
b/parser.c
index
d3dc554
..
560fa4d
100644
(file)
--- a/
parser.c
+++ b/
parser.c
@@
-3175,10
+3175,10
@@
static void semantic_logical_op(binary_expression_t *expression)
type_t *type_left = skip_typeref(orig_type_left);
type_t *type_right = skip_typeref(orig_type_right);
- if
(!is_type_arithmetic(type_left) || !is_type_arithmetic
(type_right)) {
+ if
(!is_type_scalar(type_left) || !is_type_scalar
(type_right)) {
/* TODO: improve error message */
parser_print_error_prefix();
- fprintf(stderr, "operation needs
arithmetic
types\n");
+ fprintf(stderr, "operation needs
scalar
types\n");
return;
}