Changeset 13592

Show
Ignore:
Timestamp:
01/24/08 17:50:53 (4 months ago)
Author:
warmerdam
Message:

fix bigendian support (#2172)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/gdal/frmts/gsg/gs7bgdataset.cpp

    r13587 r13592  
    350350        return NULL; 
    351351    } 
    352     poDS->nRasterYSize = CPL_LSBWORD32( nRows ); 
     352    CPL_LSBPTR32( &nRows ); 
     353    poDS->nRasterYSize = nRows; 
    353354 
    354355    /* Parse number of X axis grid columns */ 
     
    361362        return NULL; 
    362363    } 
    363     poDS->nRasterXSize = CPL_LSBWORD32( nCols ); 
     364    CPL_LSBPTR32( &nCols ); 
     365    poDS->nRasterXSize = nCols; 
    364366 
    365367    /* --------------------------------------------------------------------*/ 
     
    469471    } 
    470472 
     473    CPL_LSBPTR32( &nTag ); 
    471474    if(nTag != nDATA_TAG) 
    472475    {