- small type-fixes to male gcc -Wall shut up
authorRichard Kreckel <Richard.Kreckel@uni-mainz.de>
Thu, 18 Nov 1999 20:53:14 +0000 (20:53 +0000)
committerRichard Kreckel <Richard.Kreckel@uni-mainz.de>
Thu, 18 Nov 1999 20:53:14 +0000 (20:53 +0000)
ginac/color.cpp
ginac/color.h

index 3ac2d1f..b59e4b4 100644 (file)
@@ -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--;
         }
index a6f8ea5..9967f45 100644 (file)
@@ -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