Bug 736609: fix typo, r=sfink, a=akeybl

--HG--
extra : rebase_source : 4299196454f1a078ada48328a953d571efea9a4a
This commit is contained in:
David Mandelin 2012-04-12 11:54:47 -07:00
parent ac0a01ac3b
commit 0447d76457

View File

@ -1871,7 +1871,7 @@ class TypedArrayTemplate
// We have to make a copy of the source array here, since
// there's overlap, and we have to convert types.
void *srcbuf = cx->malloc_(getLength(tarray));
void *srcbuf = cx->malloc_(getByteLength(tarray));
if (!srcbuf)
return false;
js_memcpy(srcbuf, getDataOffset(tarray), getByteLength(tarray));