diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2014-07-29 13:05:45 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2014-07-29 13:05:45 -0400 |
commit | 000f928e22bd223d1f1aa2d783ee0b30fe295df7 (patch) | |
tree | 6be4b491673cfa4d549ba36b5e068a5509919f2e /libdimension | |
parent | a8cd1c76427143baacd77956579d6ac8879cd03c (diff) | |
download | dimension-000f928e22bd223d1f1aa2d783ee0b30fe295df7.tar.xz |
geometry: Use consistent parameter types to avoid a spurious -Warray-bounds warning.
Diffstat (limited to 'libdimension')
-rw-r--r-- | libdimension/geometry.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libdimension/geometry.c b/libdimension/geometry.c index 5ce7d64..4a16a3c 100644 --- a/libdimension/geometry.c +++ b/libdimension/geometry.c @@ -142,8 +142,7 @@ static dmnsn_matrix2 dmnsn_matrix2_mul(dmnsn_matrix2 lhs, dmnsn_matrix2 rhs); /// Invert a matrix with the slower cofactor algorithm, if partitioning failed. static dmnsn_matrix dmnsn_matrix_inverse_generic(dmnsn_matrix A); /// Get the [\p row, \p col] cofactor of A. -static double dmnsn_matrix_cofactor(dmnsn_matrix A, - unsigned int row, unsigned int col); +static double dmnsn_matrix_cofactor(dmnsn_matrix A, size_t row, size_t col); // Invert a matrix, by partitioning dmnsn_matrix @@ -306,7 +305,7 @@ dmnsn_matrix_inverse_generic(dmnsn_matrix A) // upper-left 3x3 corner of A by ignoring row `row' and column `col', // times (-1)^(row + col) static double -dmnsn_matrix_cofactor(dmnsn_matrix A, unsigned int row, unsigned int col) +dmnsn_matrix_cofactor(dmnsn_matrix A, size_t row, size_t col) { // 2 multiplications, 1 addition double n[4]; |