Skip to content

Commit 18e08fc

Browse files
authored
fix: use appropriate variable in error message
PR-URL: #7401 Reviewed-by: Athan Reines <[email protected]>
1 parent 35b2ba1 commit 18e08fc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/node_modules/@stdlib/blas/base/sgemm/lib/ndarray.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function sgemm( transA, transB, M, N, K, alpha, A, strideA1, strideA2, offsetA,
7979
throw new RangeError( format( 'invalid argument. Third argument must be a nonnegative integer. Value: `%d`.', M ) );
8080
}
8181
if ( N < 0 ) {
82-
throw new RangeError( format( 'invalid argument. Fourth argument must be a nonnegative integer. Value: `%d`.', M ) );
82+
throw new RangeError( format( 'invalid argument. Fourth argument must be a nonnegative integer. Value: `%d`.', N ) );
8383
}
8484
if ( K < 0 ) {
8585
throw new RangeError( format( 'invalid argument. Fifth argument must be a nonnegative integer. Value: `%d`.', K ) );

lib/node_modules/@stdlib/blas/base/sgemm/lib/sgemm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ function sgemm( order, transA, transB, M, N, K, alpha, A, LDA, B, LDB, beta, C,
9595
throw new RangeError( format( 'invalid argument. Fourth argument must be a nonnegative integer. Value: `%d`.', M ) );
9696
}
9797
if ( N < 0 ) {
98-
throw new RangeError( format( 'invalid argument. Fifth argument must be a nonnegative integer. Value: `%d`.', M ) );
98+
throw new RangeError( format( 'invalid argument. Fifth argument must be a nonnegative integer. Value: `%d`.', N ) );
9999
}
100100
if ( K < 0 ) {
101101
throw new RangeError( format( 'invalid argument. Sixth argument must be a nonnegative integer. Value: `%d`.', K ) );

0 commit comments

Comments
 (0)