fix type-punned pointer warnings from gcc
R=rsc http://codereview.appspot.com/396042
This commit is contained in:
parent
2fe14f1315
commit
0c9c620f39
11 changed files with 57 additions and 29 deletions
|
|
@ -855,11 +855,12 @@ ocand(Node *n, Node *res)
|
|||
{
|
||||
Node l, r;
|
||||
|
||||
res->store.fmt = l.store.fmt;
|
||||
res->store.fmt = 'D';
|
||||
res->op = OCONST;
|
||||
res->type = TINT;
|
||||
res->store.u.ival = 0;
|
||||
expr(n->left, &l);
|
||||
res->store.fmt = l.store.fmt;
|
||||
if(bool(&l) == 0)
|
||||
return;
|
||||
expr(n->right, &r);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue