From 763953adbf570ecc3226201ca0aff1596b3daa1a Mon Sep 17 00:00:00 2001 From: Richard Kreckel Date: Thu, 18 Nov 1999 20:53:14 +0000 Subject: [PATCH] - small type-fixes to male gcc -Wall shut up --- ginac/color.cpp | 2 +- ginac/color.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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 -- 2.49.0