]> Creatis software - gdcm.git/commitdiff
*FIX: DOH again the same bug of unsigned vs. signed !
authormalaterre <malaterre>
Wed, 5 Nov 2003 17:57:20 +0000 (17:57 +0000)
committermalaterre <malaterre>
Wed, 5 Nov 2003 17:57:20 +0000 (17:57 +0000)
src/gdcmHeader.cxx

index d3416cecf6df0b042bdc8d7b6c53bdcb87fa83a4..6efaf6d1f7c0a9fc51fa0b745d15ce908008aaf8 100644 (file)
@@ -1,4 +1,4 @@
-// $Header: /cvs/public/gdcm/src/Attic/gdcmHeader.cxx,v 1.108 2003/11/05 17:14:59 malaterre Exp $
+// $Header: /cvs/public/gdcm/src/Attic/gdcmHeader.cxx,v 1.109 2003/11/05 17:57:20 malaterre Exp $
 
 #include "gdcmHeader.h"
 
@@ -2259,7 +2259,7 @@ void * gdcmHeader::GetLUTRGBA(void) {
    } 
  // forge the 4 * 8 Bits Red/Green/Blue/Alpha LUT 
    
-  char *LUTRGBA = (char *)calloc(1024,1); // 256 * 4 (R, G, B, Alpha) 
+  unsigned char *LUTRGBA = (char *)calloc(1024,1); // 256 * 4 (R, G, B, Alpha) 
   if (!LUTRGBA) {
      return NULL;
   }
@@ -2287,7 +2287,7 @@ void * gdcmHeader::GetLUTRGBA(void) {
            // and fix the code
            // We give up the checking to avoid some overhead 
            
-  char *a;      
+  unsigned char *a;      
   int i;
   a= LUTRGBA+0;
   for(i=0;i<lengthR;i++) {