Changeset 11687

Show
Ignore:
Timestamp:
06/21/07 10:09:59 (1 year ago)
Author:
dmorissette
Message:

Added cast in isspace() calls to avoid failed assertion on Windows (#1678)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.4/gdal/ogr/ogrsf_frmts/mitab/mitab_imapinfofile.cpp

    r7628 r11687  
    175175        while(fp && (pszLine = CPLReadLine(fp)) != NULL) 
    176176        { 
    177             while (isspace(*pszLine))  pszLine++; 
     177            while (isspace((unsigned char)*pszLine))  pszLine++; 
    178178            if (EQUALN(pszLine, "Fields", 6)) 
    179179                bFoundFields = TRUE; 
  • branches/1.4/gdal/ogr/ogrsf_frmts/mitab/mitab_tabfile.cpp

    r9130 r11687  
    726726         *------------------------------------------------------------*/ 
    727727        const char *pszStr = m_papszTABFile[iLine]; 
    728         while(*pszStr != '\0' && isspace(*pszStr)) 
     728        while(*pszStr != '\0' && isspace((unsigned char)*pszStr)) 
    729729            pszStr++; 
    730730 
  • branches/1.4/gdal/ogr/ogrsf_frmts/mitab/mitab_tabseamless.cpp

    r6276 r11687  
    221221    { 
    222222        const char *pszStr = papszTABFile[i]; 
    223         while(*pszStr != '\0' && isspace(*pszStr)) 
     223        while(*pszStr != '\0' && isspace((unsigned char)*pszStr)) 
    224224            pszStr++; 
    225225        if (EQUALN(pszStr, "\"\\IsSeamless\" = \"TRUE\"", 21)) 
  • branches/1.4/gdal/ogr/ogrsf_frmts/mitab/mitab_tabview.cpp

    r6276 r11687  
    248248    { 
    249249        const char *pszStr = m_papszTABFile[i]; 
    250         while(*pszStr != '\0' && isspace(*pszStr)) 
     250        while(*pszStr != '\0' && isspace((unsigned char)*pszStr)) 
    251251            pszStr++; 
    252252        if (EQUALN(pszStr, "create view", 11))