Changeset 1310


Ignore:
Timestamp:
Jan 29, 2020 1:30:33 PM (2 months ago)
Author:
stefan
Message:

fix msvc warnings

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

Legend:

Unmodified
Added
Removed
  • branches/autotools-update/Couenne/src/cut/sdpcuts/CouenneMatrix.cpp

    r965 r1310  
    230230  int cnt=0;
    231231
    232   printf ("Vector (%ld) (", elem_ .  size ());
     232  printf ("Vector (%d) (", (int) elem_ .  size ());
    233233
    234234  for (std::set <CouenneScalar *, CouenneSparseVector::compare_scalars>::const_iterator i = elem_ . begin ();
     
    251251void CouenneExprMatrix::print () const {
    252252
    253   printf ("Matrix (%ld x %ld):\n",
    254           row_ . size (),
    255           col_ . size ());
     253  printf ("Matrix (%d x %d):\n",
     254          (int) row_ . size (),
     255          (int) col_ . size ());
    256256
    257257  // print rows
  • branches/autotools-update/Couenne/src/main/BonCouenne.cpp

    r1304 r1310  
    415415
    416416              if ((*it) -> Image ()) fprintf (txtSol, "%d %e\n", (*it) -> Index (), (*(*it) -> Image ()) ());
    417               else                   fprintf (txtSol, "%d %e\n", (*it) -> Index (), 0);
     417              else                   fprintf (txtSol, "%d %e\n", (*it) -> Index (), 0.0);
    418418
    419419            } else fprintf (txtSol, "%d %e\n", (*it) -> Index (), (*(*it)) ());
Note: See TracChangeset for help on using the changeset viewer.