mirror of
https://github.com/golang/go
synced 2024-11-20 08:04:42 -07:00
gc: Better error when computing remainder of non-int
Previously the compiler would just emit "internal compiler error" when trying to compute the remainder of floats or complex types. R=rsc CC=golang-dev https://golang.org/cl/1243041
This commit is contained in:
parent
809479740f
commit
d2aa74118c
@ -491,7 +491,7 @@ typeinit(void)
|
|||||||
okfor[OGT] = okforcmp;
|
okfor[OGT] = okforcmp;
|
||||||
okfor[OLE] = okforcmp;
|
okfor[OLE] = okforcmp;
|
||||||
okfor[OLT] = okforcmp;
|
okfor[OLT] = okforcmp;
|
||||||
okfor[OMOD] = okforarith;
|
okfor[OMOD] = okforand;
|
||||||
okfor[OMUL] = okforarith;
|
okfor[OMUL] = okforarith;
|
||||||
okfor[ONE] = okforeq;
|
okfor[ONE] = okforeq;
|
||||||
okfor[OOR] = okforand;
|
okfor[OOR] = okforand;
|
||||||
|
Loading…
Reference in New Issue
Block a user