Changeset 13832

Show
Ignore:
Timestamp:
02/21/08 15:21:12 (4 months ago)
Author:
warmerdam
Message:

Change Lshift[] to an int array instead of a char array. For some
reason Lshift is treated as "\0\0\0\0" on my system, possibly due to
special rules for char array initializers. I see no reason to use
the previous odd arrangement, and the new arrangement seems to work
fine.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • spike/grib/degrib18/degrib/grib2api.c

    r13831 r13832  
    13831383                        int numByte) 
    13841384{ 
    1385    static char Lshift[] = { 0, 8, 16, 24 }; /* Amounts to shift left by. */ 
     1385   static int Lshift[] = { 0, 8, 16, 24 }; /* Amounts to shift left by. */ 
    13861386   unsigned int intIndex; /* Where in ipack to read from. */ 
    13871387   unsigned int byteIndex; /* Where in intIndex to read from. */