Changeset 1605 for trunk/Clp


Ignore:
Timestamp:
Sep 15, 2010 9:15:28 PM (9 years ago)
Author:
lou
Message:

Changes to fix 64-bit warnings in MS cl build.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Clp/src/CbcOrClpParam.cpp

    r1596 r1605  
    238238{
    239239     std::string::size_type  shriekPos = name_.find('!');
    240      lengthName_ = name_.length();
     240     lengthName_ = static_cast<unsigned int>(name_.length());
    241241     if ( shriekPos == std::string::npos ) {
    242242          //does not contain '!'
    243243          lengthMatch_ = lengthName_;
    244244     } else {
    245           lengthMatch_ = shriekPos;
     245          lengthMatch_ = static_cast<unsigned int>(shriekPos);
    246246          name_ = name_.substr(0, shriekPos) + name_.substr(shriekPos + 1);
    247247          lengthName_--;
     
    300300CbcOrClpParam::parameterOption ( std::string check ) const
    301301{
    302      int numberItems = definedKeyWords_.size();
     302     int numberItems = static_cast<int>(definedKeyWords_.size());
    303303     if (!numberItems) {
    304304          return -1;
     
    309309               std::string thisOne = definedKeyWords_[it];
    310310               std::string::size_type  shriekPos = thisOne.find('!');
    311                unsigned int length1 = thisOne.length();
    312                unsigned int length2 = length1;
     311               size_t length1 = thisOne.length();
     312               size_t length2 = length1;
    313313               if ( shriekPos != std::string::npos ) {
    314314                    //contains '!'
     
    379379void CoinReadPrintit(const char * input)
    380380{
    381      int length = strlen(input);
     381     int length = static_cast<int>(strlen(input));
    382382     char temp[101];
    383383     int i;
     
    33053305          int numberColumnsFile;
    33063306          double objectiveValue;
    3307           int nRead;
     3307          size_t nRead;
    33083308          nRead = fread(&numberRowsFile, sizeof(int), 1, fp);
    33093309          if (nRead != 1)
     
    33693369                    CoinMemcpyN(temp, numberColumns, dualColumnSolution);
    33703370                    delete [] temp;
    3371                }
     3371                           }
    33723372               if (mode == 3) {
    33733373                    int i;
     
    34273427          int numberColumns = lpSolver->numberColumns();
    34283428          double objectiveValue = lpSolver->objectiveValue();
    3429           int nWrite;
     3429          size_t nWrite;
    34303430          nWrite = fwrite(&numberRows, sizeof(int), 1, fp);
    34313431          if (nWrite != 1)
Note: See TracChangeset for help on using the changeset viewer.