From: Christoph Mallon Date: Sat, 17 Nov 2007 15:49:03 +0000 (+0000) Subject: && and || accept scalar types, not only arithmetic types. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=02e2aeb532aeea33a0f8af198b3c6e568d54b007;p=cparser && and || accept scalar types, not only arithmetic types. [r18445] --- diff --git a/parser.c b/parser.c index d3dc554..560fa4d 100644 --- 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; }