Changeset 3195


Ignore:
Timestamp:
12/16/07 14:26:39 (12 years ago)
Author:
paulf
Message:

made SwapLong? check for not 4 bytes for long....previous check was too limiting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libsrc/util/swap.c

    r3193 r3195  
    88 *    Revision history: 
    99 *     $Log$ 
     10 *     Revision 1.12  2007/12/16 19:26:39  paulf 
     11 *     made SwapLong check for not 4 bytes for long....previous check was too limiting 
     12 * 
    1013 *     Revision 1.11  2007/12/16 18:42:19  paulf 
    1114 *     made swap functions long int tolerant where in some OS, long can be 8 bytes 
     
    119122   } dat; 
    120123 
    121    if (sizeof(long) == 8) { 
     124   if (sizeof(long) != 4) { 
    122125      fprintf(stderr, "FATAL ERROR: SwapLong() assumes 4 byte longs and sizeof(long)=%d\n", sizeof(long)); 
    123126      exit(9); 
Note: See TracChangeset for help on using the changeset viewer.