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