]> www.ginac.de Git - ginac.git/commitdiff
- 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 3ac2d1f218daf1a37cd6c79e2c018e4a5411060c..b59e4b4ce1a030b340b1a248a6be6d4b070ef34e 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 a6f8ea599e7b3a2ea709e42040b57c2345f860e0..9967f4517e02082ae4878fc1adbc927aeff41518 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