You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Converting a signed or unsigned integer value to a string type yields a string containing the UTF-8 representation of the integer. Values outside the range of valid Unicode code points are converted to "\uFFFD".
cmd/compile rejects string(1<<100) instead of yielding "\uFFFD": http://play.golang.org/p/1s6ge-XFqd (gccgo also rejects this; gotype accepts it.)
runtime incorrectly truncates 64-bit integer values to uint32 before checking if they're a valid Unicode code point: http://play.golang.org/p/M_Gkll5VY-
The text was updated successfully, but these errors were encountered:
Go spec says:
string(1<<100)
instead of yielding"\uFFFD"
: http://play.golang.org/p/1s6ge-XFqd (gccgo also rejects this; gotype accepts it.)The text was updated successfully, but these errors were encountered: