mirror of
https://github.com/golang/go
synced 2024-11-20 08:24:42 -07:00
cmd/gc: fix typos in clearslim.
Fixes build failure. R=golang-dev, bradfitz, dave CC=golang-dev https://golang.org/cl/6847043
This commit is contained in:
parent
677c6e6ee7
commit
0a47d2eff1
@ -649,7 +649,7 @@ clearslim(Node *n)
|
|||||||
switch(simtype[n->type->etype]) {
|
switch(simtype[n->type->etype]) {
|
||||||
case TCOMPLEX64:
|
case TCOMPLEX64:
|
||||||
case TCOMPLEX128:
|
case TCOMPLEX128:
|
||||||
z.val.u.cval = mal(sizeof(z.val.u.cval));
|
z.val.u.cval = mal(sizeof(*z.val.u.cval));
|
||||||
mpmovecflt(&z.val.u.cval->real, 0.0);
|
mpmovecflt(&z.val.u.cval->real, 0.0);
|
||||||
mpmovecflt(&z.val.u.cval->imag, 0.0);
|
mpmovecflt(&z.val.u.cval->imag, 0.0);
|
||||||
break;
|
break;
|
||||||
@ -681,7 +681,7 @@ clearslim(Node *n)
|
|||||||
case TUINT32:
|
case TUINT32:
|
||||||
case TUINT64:
|
case TUINT64:
|
||||||
z.val.ctype = CTINT;
|
z.val.ctype = CTINT;
|
||||||
z.val.u.xval = mal(sizeof(z.val.u.xval));
|
z.val.u.xval = mal(sizeof(*z.val.u.xval));
|
||||||
mpmovecfix(z.val.u.xval, 0);
|
mpmovecfix(z.val.u.xval, 0);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user