Changeset 1006


Ignore:
Timestamp:
May 30, 2008 5:17:02 AM (16 years ago)
Author:
dkearney
Message:

changed printf formating from unsigned int to pointer in RpUnits and adjusted the outcome c interface to avoid accessing the private variables of the outcome. this is done to avoid compiler errors when compiling in hubzero and other 64bit environments.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/cee/RpOutcomeCInterface.cc

    r622 r1006  
    134134RapptureOutcomeCheck(RapptureOutcome* status)
    135135{
    136     return ((int)((Rappture::Outcome*)status->_status));
     136    return ((int)(*((Rappture::Outcome*)status)));
    137137}
    138138
  • trunk/src/core/RpUnits.cc

    r999 r1006  
    22652265
    22662266    for (convertList::iterator iter = l1.begin(); iter != l1.end(); iter++) {
    2267         printf("%x\n", int((*iter)));
     2267        printf("%p\n", *iter);
    22682268    }
    22692269    return 0;
Note: See TracChangeset for help on using the changeset viewer.