Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • stable/2.8/Cbc/src/Cbc_ampl.cpp

    r1752 r1888  
    145145static Option_Info Oinfo = {
    146146    const_cast<char*>("cbc"),
    147     const_cast<char*>("CBC trunk"),
     147    const_cast<char*>("CBC " CBC_VERSION),
    148148    const_cast<char*>("cbc_options"),
    149149    keywds,
    150150    nkeywds,
    151151    0,
    152     const_cast<char*>(""),
     152    0,
    153153    0,
    154154    decodePhrase,
     
    441441                sos_kludge(nsos, sosbeg, sosref, sosind);
    442442                for (int i = 0; i < nsos; i++) {
    443                     int ichar = sostype[i];
     443                    char ichar = sostype[i];
    444444                    assert (ichar == '1' || ichar == '2');
    445                     info->sosType[i] = ichar - '0';
     445                    info->sosType[i] = static_cast<char>(ichar - '0');
    446446                }
    447447                memcpy(info->sosPriority, sospri, nsos*sizeof(int));
     
    619619            fprintf(stderr, "You can copy .nl file %s for debug purposes or attach debugger\n", saveArgv[1]);
    620620            fprintf(stderr, "Type q to quit, anything else to continue\n");
    621             char getChar = getc(stdin);
     621            int getChar = getc(stdin);
    622622            if (getChar == 'q' || getChar == 'Q')
    623623                exit(1);
     
    988988        // quadratic
    989989        asl = ASL_alloc(ASL_read_fg);
    990         nl = jac0dim(stub, (long) strlen(stub));
     990        nl = jac0dim(stub, (ftnlen) strlen(stub));
    991991        free(stub);
    992992        suf_declare(suftab, sizeof(suftab) / sizeof(SufDecl));
     
    10941094        //ASL_pfgh* asl = (ASL_pfgh*)ASL_alloc(ASL_read_pfgh);
    10951095        asl = ASL_alloc(ASL_read_pfgh);
    1096         nl = jac0dim(stub, (long) strlen(stub));
     1096        nl = jac0dim(stub, (ftnlen) strlen(stub));
    10971097        free(stub);
    10981098        suf_declare(suftab, sizeof(suftab) / sizeof(SufDecl));
Note: See TracChangeset for help on using the changeset viewer.