Changeset 827 in Sophya for trunk/SophyaLib/BaseTools/dvlist.cc


Ignore:
Timestamp:
Apr 6, 2000, 6:39:00 PM (25 years ago)
Author:
ansari
Message:

Suppression de warning compil dvlist (format printf) - Reza 6/4/2000

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/BaseTools/dvlist.cc

    r802 r827  
    284284    {
    285285    case 'I' :
    286       sprintf(buff, "%s = %d (int) %s\n", (*it).first.substr(0,64).c_str(),
    287               (*it).second.elval.mtv.iv, (*it).second.elcomm.substr(0,128).c_str());
     286      sprintf(buff, "%s = %ld (int) %s\n", (*it).first.substr(0,64).c_str(),
     287              (long)((*it).second.elval.mtv.iv), (*it).second.elcomm.substr(0,128).c_str());
    288288      break;
    289289    case 'D' :
     
    359359  switch ((*it).second.elval.typ) {
    360360    case 'I' :
    361       sprintf(buf,"I %s %d", (*it).first.substr(0,64).c_str(), (*it).second.elval.mtv.iv );
     361      sprintf(buf,"I %s %ld", (*it).first.substr(0,64).c_str(), (long)((*it).second.elval.mtv.iv) );
    362362      sfw = buf;  s.PutStr(sfw);
    363363      break;
Note: See TracChangeset for help on using the changeset viewer.