Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
82f33d3f
Commit
82f33d3f
authored
Jul 25, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Check for mismatched types in ?: expressions.
parent
a92d60ef
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
expr.c
tools/widl/expr.c
+4
-0
No files found.
tools/widl/expr.c
View file @
82f33d3f
...
...
@@ -649,6 +649,10 @@ static struct expression_type resolve_expression(const struct expr_loc *expr_loc
check_scalar_type
(
expr_loc
,
cont_type
,
result_first
.
type
);
result_second
=
resolve_expression
(
expr_loc
,
cont_type
,
e
->
u
.
ext
);
result_third
=
resolve_expression
(
expr_loc
,
cont_type
,
e
->
ext2
);
check_scalar_type
(
expr_loc
,
cont_type
,
result_second
.
type
);
check_scalar_type
(
expr_loc
,
cont_type
,
result_third
.
type
);
if
(
!
is_ptr
(
result_second
.
type
)
^
!
is_ptr
(
result_third
.
type
))
error_loc_info
(
&
expr_loc
->
v
->
loc_info
,
"type mismatch in ?: expression
\n
"
);
/* FIXME: determine the correct return type */
result
=
result_second
;
result
.
is_variable
=
FALSE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment