mirror of
https://github.com/golang/go
synced 2024-11-19 23:04:40 -07:00
parent
c4606d05da
commit
948f3e77e1
@ -189,7 +189,7 @@ runtime·slicecopy(Slice to, Slice fm, uintptr width, int32 ret)
|
||||
}
|
||||
|
||||
ret = fm.len;
|
||||
if(to.len > ret)
|
||||
if(to.len < ret)
|
||||
ret = to.len;
|
||||
|
||||
memmove(to.array, fm.array, ret*width);
|
||||
|
Loading…
Reference in New Issue
Block a user