summaryrefslogtreecommitdiff
path: root/std/bytes/mod.ts
diff options
context:
space:
mode:
authorMarcos Casagrande <marcoscvp90@gmail.com>2020-04-30 22:39:25 +0200
committerGitHub <noreply@github.com>2020-04-30 16:39:25 -0400
commit9ded17d722b8da124987cdf16976589a46f2d3f5 (patch)
tree4b7689c9097cb2081155d9ca65165fe1b5e4829c /std/bytes/mod.ts
parent4297b865f97d3087fa80a5a73d424d2ea183c6d8 (diff)
BREAKING: reorder std/io/utils copyBytes arguments (#5022)
Diffstat (limited to 'std/bytes/mod.ts')
-rw-r--r--std/bytes/mod.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/std/bytes/mod.ts b/std/bytes/mod.ts
index 88eb97710..7d51e995c 100644
--- a/std/bytes/mod.ts
+++ b/std/bytes/mod.ts
@@ -86,10 +86,10 @@ export function repeat(b: Uint8Array, count: number): Uint8Array {
const nb = new Uint8Array(b.length * count);
- let bp = copyBytes(nb, b);
+ let bp = copyBytes(b, nb);
for (; bp < nb.length; bp *= 2) {
- copyBytes(nb, nb.slice(0, bp), bp);
+ copyBytes(nb.slice(0, bp), nb, bp);
}
return nb;