Changeset 11687


Ignore:
Timestamp:
Jun 21, 2007 7:09:59 AM (9 years ago)
Author:
dmorissette
Message:

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

Location:
branches/1.4/gdal/ogr/ogrsf_frmts/mitab
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • 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))
Note: See TracChangeset for help on using the changeset viewer.