summaryrefslogtreecommitdiff
path: root/std/bytes/mod.ts
diff options
context:
space:
mode:
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;