nv-buf-storage 2.0.4 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/mthds/cmmn.js +1 -1
- package/package.json +1 -1
package/mthds/cmmn.js
CHANGED
|
@@ -487,7 +487,7 @@ function _write_no_need_algn_typed_array(ta1b) {
|
|
|
487
487
|
|
|
488
488
|
function _aloc_need_algn_typed_array(Cls,len) {
|
|
489
489
|
var ELESZ = Cls.BYTES_PER_ELEMENT;
|
|
490
|
-
var required_sz = ELESZ(len +1); //额外分配 避免分配器随片
|
|
490
|
+
var required_sz = ELESZ*(len +1); //额外分配 避免分配器随片
|
|
491
491
|
var [si,ei]= this.aloc(required_sz);
|
|
492
492
|
if(ei !== 0) {
|
|
493
493
|
var prepad_sz = calc_prepad_sz(si,ELESZ);
|