Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit68e112f

Browse files
committed
Auto-generated commit
1 parentff3b62e commit68e112f

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
<details>
2626

27+
-[`b981bc3`](https://github.com/stdlib-js/stdlib/commit/b981bc30e83a7f88cdc2c0efca082fb31f9e1ac0) -**refactor:** avoid repeated property access_(by Athan Reines)_
2728
-[`550285b`](https://github.com/stdlib-js/stdlib/commit/550285bf4a57dd3dabc8ed3998e7b612515fe082) -**feat:** add support for boolean and mask array assignment_(by Athan Reines)_
2829
-[`074cbef`](https://github.com/stdlib-js/stdlib/commit/074cbef3f9d616c37c2be856a949e257481ff2fc) -**docs:** add note concerning broadcasting of nested array elements_(by Athan Reines)_
2930
-[`b079d65`](https://github.com/stdlib-js/stdlib/commit/b079d653226019925581555fdaf9aa927ec69c0e) -**feat:** add support for integer array indexing assignment_(by Athan Reines)_

‎dist/index.js‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎dist/index.js.map‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎lib/set_elements.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ function setElements( target, property, value, ctx ) {
6565
dt=dtype(value)||'generic';
6666
}else{
6767
// When provided a "scalar", we need to check whether the value can be safely cast to the target array data type:
68-
err=ctx.validator(value,ctx.dtype);
68+
dt=ctx.dtype;
69+
err=ctx.validator(value,dt);
6970
if(err){
7071
throwerr;
7172
}
@@ -75,8 +76,7 @@ function setElements( target, property, value, ctx ) {
7576
v=value;
7677
}
7778
// As the scalar can be safely cast, convert the scalar to an array having the same data type as the target array to allow for broadcasting during assignment:
78-
v=scalar2array(v,ctx.dtype);
79-
dt=ctx.dtype;
79+
v=scalar2array(v,dt);
8080
}
8181
if(idx.type==='int'){
8282
try{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp