Skip to content

Commit bab3575

Browse files
committed
fix: revert offset changes for scalars
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 7053c83 commit bab3575

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

lib/node_modules/@stdlib/dstructs/struct/lib/get_bigint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function getBigInt( obj, method ) {
4747
*/
4848
function getter() {
4949
var view = this[ PRIVATE_BUFFER ];
50-
return view[ method ]( view.byteOffset+obj.byteOffset, IS_LITTLE_ENDIAN ); // eslint-disable-line max-len
50+
return view[ method ]( obj.byteOffset, IS_LITTLE_ENDIAN );
5151
}
5252
}
5353

lib/node_modules/@stdlib/dstructs/struct/lib/get_boolean.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function getBoolean( obj, method ) {
4848
*/
4949
function getter() {
5050
var view = this[ PRIVATE_BUFFER ];
51-
return Boolean( view[ method ]( view.byteOffset+obj.byteOffset, IS_LITTLE_ENDIAN ) ); // eslint-disable-line max-len
51+
return Boolean( view[ method ]( obj.byteOffset, IS_LITTLE_ENDIAN ) );
5252
}
5353
}
5454

lib/node_modules/@stdlib/dstructs/struct/lib/get_complex.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ function getComplex( obj, method ) {
5757
*/
5858
function getter() {
5959
var view = this[ PRIVATE_BUFFER ];
60-
var re = view[ method ]( view.byteOffset+obj.byteOffset, IS_LITTLE_ENDIAN );
61-
var im = view[ method ]( view.byteOffset+obj.byteOffset+(obj.byteLength/2), IS_LITTLE_ENDIAN );
60+
var re = view[ method ]( obj.byteOffset, IS_LITTLE_ENDIAN );
61+
var im = view[ method ]( obj.byteOffset+(obj.byteLength/2), IS_LITTLE_ENDIAN );
6262
return complex( re, im, CMPLX_TO_REAL[ obj.type ] );
6363
}
6464
}

lib/node_modules/@stdlib/dstructs/struct/lib/get_number.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function getNumber( obj, method ) {
4747
*/
4848
function getter() {
4949
var view = this[ PRIVATE_BUFFER ];
50-
return view[ method ]( view.byteOffset+obj.byteOffset, IS_LITTLE_ENDIAN ); // eslint-disable-line max-len
50+
return view[ method ]( obj.byteOffset, IS_LITTLE_ENDIAN );
5151
}
5252
}
5353

lib/node_modules/@stdlib/dstructs/struct/lib/set_bigint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function setBigInt( obj, method ) {
8989
throw new TypeError( format( 'invalid assignment. Assigned value cannot be cast to the data type of `%s`. Data types: [%s, %s].', obj.name, obj.type, dt ) );
9090
}
9191
view = this[ PRIVATE_BUFFER ];
92-
view[ method ]( view.byteOffset+obj.byteOffset, v, IS_LITTLE_ENDIAN );
92+
view[ method ]( obj.byteOffset, v, IS_LITTLE_ENDIAN );
9393
}
9494
}
9595

lib/node_modules/@stdlib/dstructs/struct/lib/set_boolean.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function setBoolean( obj, method ) {
8383
throw new TypeError( format( 'invalid assignment. Assigned value cannot be cast to the data type of `%s`. Data types: [%s, %s].', obj.name, obj.type, dt ) );
8484
}
8585
view = this[ PRIVATE_BUFFER ];
86-
view[ method ]( view.byteOffset+obj.byteOffset, v, IS_LITTLE_ENDIAN );
86+
view[ method ]( obj.byteOffset, v, IS_LITTLE_ENDIAN );
8787
}
8888
}
8989

lib/node_modules/@stdlib/dstructs/struct/lib/set_complex.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ function setComplex( obj, method ) {
8585
throw new TypeError( format( 'invalid assignment. Assigned value cannot be cast to the data type of `%s`. Data types: [%s, %s].', obj.name, obj.type, dt ) );
8686
}
8787
view = this[ PRIVATE_BUFFER ];
88-
view[ method ]( view.byteOffset+obj.byteOffset, re, IS_LITTLE_ENDIAN );
89-
view[ method ]( view.byteOffset+obj.byteOffset+(obj.byteLength/2), im, IS_LITTLE_ENDIAN );
88+
view[ method ]( obj.byteOffset, re, IS_LITTLE_ENDIAN );
89+
view[ method ]( obj.byteOffset+(obj.byteLength/2), im, IS_LITTLE_ENDIAN );
9090
}
9191
}
9292

lib/node_modules/@stdlib/dstructs/struct/lib/set_number.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function setNumber( obj, method ) {
9393
throw new TypeError( format( 'invalid assignment. Assigned value cannot be cast to the data type of `%s`. Data types: [%s, %s].', obj.name, obj.type, dt ) );
9494
}
9595
view = this[ PRIVATE_BUFFER ];
96-
view[ method ]( view.byteOffset+obj.byteOffset, v, IS_LITTLE_ENDIAN );
96+
view[ method ]( obj.byteOffset, v, IS_LITTLE_ENDIAN );
9797
}
9898
}
9999

0 commit comments

Comments
 (0)