aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/acid
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2010-03-10 14:50:33 -0800
committerRuss Cox <rsc@swtch.com>2010-03-10 14:50:33 -0800
commit0c9c620f39e56c42802504003fd05664aba670a4 (patch)
treead14a1a51f3b6193d0603725d62a34fbc4647c49 /src/cmd/acid
parent2fe14f1315eb8d3235ea8f978e5bd9444f467c2b (diff)
downloadplan9port-0c9c620f39e56c42802504003fd05664aba670a4.tar.gz
plan9port-0c9c620f39e56c42802504003fd05664aba670a4.tar.bz2
plan9port-0c9c620f39e56c42802504003fd05664aba670a4.zip
fix type-punned pointer warnings from gcc
R=rsc http://codereview.appspot.com/396042
Diffstat (limited to 'src/cmd/acid')
-rw-r--r--src/cmd/acid/expr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd/acid/expr.c b/src/cmd/acid/expr.c
index 2330c430..61d5951e 100644
--- a/src/cmd/acid/expr.c
+++ b/src/cmd/acid/expr.c
@@ -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);