From 000f928e22bd223d1f1aa2d783ee0b30fe295df7 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 29 Jul 2014 13:05:45 -0400 Subject: geometry: Use consistent parameter types to avoid a spurious -Warray-bounds warning. --- libdimension/geometry.c | 5 ++--- 1 file 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]; -- cgit v1.2.3