Merge branch 'dmcgrath/patch-1'.

This commit is contained in:
Jason Davies 2012-09-06 09:18:20 +01:00
commit 38e3a90a92
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@
this.k = k;
var n = Math.ceil(m / 32);
if (typedArrays) {
var buffer = new ArrayBuffer(32 * n),
var buffer = new ArrayBuffer(4 * n),
kbytes = 1 << Math.ceil(Math.log(Math.ceil(Math.log(m) / Math.LN2 / 8)) / Math.LN2),
array = kbytes === 1 ? Uint8Array : kbytes === 2 ? Uint16Array : Uint32Array,
kbuffer = new ArrayBuffer(kbytes * k);