Skip to content

Commit 06b6096

Browse files
authored
Apply suggestions from code review
Signed-off-by: Athan <[email protected]>
1 parent 879da5f commit 06b6096

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/node_modules/@stdlib/blas/base/wasm/scnrm2/benchmark/benchmark.module.main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ function createBenchmark( len ) {
8080
// Initialize the module:
8181
mod.initializeSync(); // eslint-disable-line node/no-sync
8282

83-
// Reallocate the underlying memory to allow storing one vector and a complex number:
83+
// Reallocate the underlying memory to allow storing one vector:
8484
nb = bytesPerElement( 'complex64' );
85-
mod.realloc( (N*nb)+nb );
85+
mod.realloc( N*nb );
8686

8787
// Define a pointer (i.e., byte offset) to the first vector element:
8888
xptr = 0;

lib/node_modules/@stdlib/blas/base/wasm/scnrm2/benchmark/benchmark.module.ndarray.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ function createBenchmark( len ) {
8080
// Initialize the module:
8181
mod.initializeSync(); // eslint-disable-line node/no-sync
8282

83-
// Reallocate the underlying memory to allow storing one vector and a complex number:
83+
// Reallocate the underlying memory to allow storing one vector:
8484
nb = bytesPerElement( 'complex64' );
85-
mod.realloc( (N*nb)+nb );
85+
mod.realloc( N*nb );
8686

8787
// Define a pointer (i.e., byte offset) to the first vector element:
8888
xptr = 0;

0 commit comments

Comments
 (0)