Changeset 1305


Ignore:
Timestamp:
Jan 29, 2020 12:13:05 PM (2 months ago)
Author:
stefan
Message:

some casts to fix MSVC warnings

Location:
branches/autotools-update/Couenne/src/standardize
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/autotools-update/Couenne/src/standardize/analyzeSparsity.cpp

    r732 r1305  
    6060  if (jnlst_ -> ProduceOutput (Ipopt::J_ALL, J_REFORMULATE)) {
    6161    printf ("qmap has %d element, occur has %d, md*s*(s+1)/2 = %g\n",
    62             qmap.Map().size (),
    63             occur.size (),
     62            (int)qmap.Map().size (),
     63            (int)occur.size (),
    6464            MIN_DENSITY * (double) (occur.size ()) * ((double) (occur.size ()) + 1.) / 2);
    6565  }
  • branches/autotools-update/Couenne/src/standardize/auxiliarize.cpp

    r792 r1305  
    7474
    7575      if (jnlst_ -> ProduceOutput (Ipopt::J_ALL, J_REFORMULATE)) {
    76         printf ("replacing within common expression [%d]: ", i - commonexprs_.begin ()); fflush (stdout); (*i) -> print (); printf ("\n");
     76        printf ("replacing within common expression [%d]: ", (int)(i - commonexprs_.begin ())); fflush (stdout); (*i) -> print (); printf ("\n");
    7777      }
    7878
     
    124124
    125125      if (jnlst_ -> ProduceOutput (Ipopt::J_ALL, J_REFORMULATE)) {
    126         printf ("replacing within constraint [%d]: ", i - constraints_.begin ()); fflush (stdout); (*i) -> print ();
     126        printf ("replacing within constraint [%d]: ", (int)(i - constraints_.begin ())); fflush (stdout); (*i) -> print ();
    127127      }
    128128
Note: See TracChangeset for help on using the changeset viewer.