From bd3ecf75ed2a77b9f56fc31f7923fc0f4d1982d4 Mon Sep 17 00:00:00 2001 From: Alexei Sheplyakov Date: Fri, 12 Sep 2008 19:55:36 +0400 Subject: [PATCH] [nitpick] don't use int instead of std::size_t. This shuts up (some of) 'comparison between signed and unsigned integer expressions' warnings. --- ginac/indexed.cpp | 4 ++-- ginac/matrix.cpp | 2 +- ginac/ncmul.cpp | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ginac/indexed.cpp b/ginac/indexed.cpp index c8b710ae..aa850039 100644 --- a/ginac/indexed.cpp +++ b/ginac/indexed.cpp @@ -1409,7 +1409,7 @@ exvector get_all_dummy_indices_safely(const ex & e) else if (is_a(e) || is_a(e)) { exvector dummies; exvector free_indices; - for (int i=0; i(e)) { exvector result; - for(int i=0; i intvector; +typedef std::vector uintvector; ex ncmul::expand(unsigned options) const { @@ -134,8 +134,8 @@ ex ncmul::expand(unsigned options) const // Now, look for all the factors that are sums and remember their // position and number of terms. - intvector positions_of_adds(expanded_seq.size()); - intvector number_of_add_operands(expanded_seq.size()); + uintvector positions_of_adds(expanded_seq.size()); + uintvector number_of_add_operands(expanded_seq.size()); size_t number_of_adds = 0; size_t number_of_expanded_terms = 1; @@ -167,7 +167,7 @@ ex ncmul::expand(unsigned options) const exvector distrseq; distrseq.reserve(number_of_expanded_terms); - intvector k(number_of_adds); + uintvector k(number_of_adds); /* Rename indices in the static members of the product */ exvector expanded_seq_mod; -- 2.44.0