Changeset 3187


Ignore:
Timestamp:
12/16/07 12:52:33 (11 years ago)
Author:
paulf
Message:

fixed SwapLong? for SwapInt? in tankplayer for some OS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/archiving/tankplayer/tankplayer.c

    r2884 r3187  
    88 *    Revision history: 
    99 *     $Log$ 
     10 *     Revision 1.14  2007/12/16 17:52:33  paulf 
     11 *     fixed SwapLong for SwapInt in tankplayer for some OS 
     12 * 
    1013 *     Revision 1.13  2007/03/28 18:04:54  paulf 
    1114 *     removed incl of malloc.h since it was in platform.h 
     
    169172  short         nchan;            /* #channels in this message             */ 
    170173  short         nscan;            /* #scans in this message                */ 
    171   long          nsamp;            /* #samples in this message              */ 
     174  int           nsamp;            /* #samples in this message              */ 
    172175  unsigned char module;           /* source module of this waveform msg    */ 
    173176  char          byte_order;       /* byte order of this trace msg          */ 
     
    349352        module          = 0; 
    350353#ifdef _SPARC 
    351         if( byte_order == 'i' || byte_order == 'f' ) SwapLong( &nsamp ); 
     354        if( byte_order == 'i' || byte_order == 'f' ) SwapInt( &nsamp ); 
    352355#endif 
    353356#ifdef _INTEL 
    354         if( byte_order == 's' || byte_order == 't' ) SwapLong( &nsamp ); 
     357        if( byte_order == 's' || byte_order == 't' ) SwapInt( &nsamp ); 
    355358#endif 
    356359 
Note: See TracChangeset for help on using the changeset viewer.