Show
Ignore:
Timestamp:
11/20/07 23:45:14 (1 year ago)
Author:
daboo
Message:

Merge of win32-merge branch.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Mulberry/trunk/Sources_Common/Formatting/CParserHTML.cp

    r62 r143  
    3030 
    3131#include <strstream> 
     32#include <math.h> 
     33 
    3234using namespace std; 
    3335#if __dest_os == __linux_os 
     
    922924        { 
    923925                long amount = ::uniatol(sizeStr); 
    924                 if (sizeStr[0UL] == '+' || sizeStr[0UL] == '-') 
     926                if (sizeStr[(cdstring::size_type)0] == '+' || sizeStr[(cdstring::size_type)0] == '-') 
    925927                        amount += mBaseFontSize; 
    926928 
     
    10251027 
    10261028                // Allow URLs without schemes provided they are local 
    1027                 if (mClickList && !location.empty() && (!scheme.empty() || location[0UL] == '#')) 
     1029                if (mClickList && !location.empty() && (!scheme.empty() || location[(cdstring::size_type)0] == '#')) 
    10281030                { 
    10291031                        // Create click element 
     
    12391241 
    12401242                        // Look for relative URL 
    1241                         if (!outLocation.empty() && (outLocation[0UL] != '/')) 
     1243                        if (!outLocation.empty() && (outLocation[(cdstring::size_type)0] != '/')) 
    12421244                        { 
    12431245                                // Short circuit the common ones