Skip to content

Commit

Permalink
Merge branch 'go1.20' of github.com:gopherjs/gopherjs into workingOnGo20
Browse files Browse the repository at this point in the history
  • Loading branch information
grantnelson-wf committed Jul 24, 2024
2 parents ba56db7 + 5b2414c commit 1c46eb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/prelude/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ var $newType = (size, kind, string, named, pkg, exported, constructor) => {
if (src.$length < dst.length) {
$throwRuntimeError("cannot convert slice with length "+src.$length+" to array or pointer to array with length "+dst.length);
}
$copyArray(dst, src.$array, 0, 0, Math.min(src.$length, dst.length), elem);
$copyArray(dst, src.$array, 0, 0, dst.length, elem);
} else {
// copy from another array
$copyArray(dst, src, 0, 0, src.length, elem);
Expand Down

0 comments on commit 1c46eb5

Please sign in to comment.