From: Richard Kreckel Date: Thu, 18 Nov 1999 20:53:14 +0000 (+0000) Subject: - small type-fixes to male gcc -Wall shut up X-Git-Tag: release_0-5-0~153 X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?a=commitdiff_plain;h=763953adbf570ecc3226201ca0aff1596b3daa1a;p=ginac.git - small type-fixes to male gcc -Wall shut up --- diff --git a/ginac/color.cpp b/ginac/color.cpp index 3ac2d1f2..b59e4b4c 100644 --- a/ginac/color.cpp +++ b/ginac/color.cpp @@ -947,7 +947,7 @@ ex brute_force_sum_color_indices(ex const & e) // increment counter[] l=iv_double.size()-1; - while ((l>=0)&&((++counter[l])>COLOR_EIGHT)) { + while ((l>=0)&&((++counter[l])>(int)COLOR_EIGHT)) { counter[l]=1; l--; } diff --git a/ginac/color.h b/ginac/color.h index a6f8ea59..9967f451 100644 --- a/ginac/color.h +++ b/ginac/color.h @@ -30,9 +30,9 @@ namespace GiNaC { -const int MAX_REPRESENTATION_LABELS = 4; -const int COLOR_EIGHT = 8; // N*N-1 -const int COLOR_THREE = 3; // N +const unsigned MAX_REPRESENTATION_LABELS = 4; +const unsigned COLOR_EIGHT = 8; // N*N-1 +const unsigned COLOR_THREE = 3; // N /** Base class for color object */ class color : public indexed