Ignore:
Timestamp:
Aug 24, 2009, 1:12:39 PM (15 years ago)
Author:
buchmann
Message:

Changes:

  • code cleanup
  • now prints correctly unsigned/signed (serialization.cc)

Fix:

  • when the --help option is used, there is no simulation performed.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sources/src/serialization.cc

    r27 r42  
    9898  } else if (bit_number <= 16) {
    9999    uint16 v = *((const uint16*)val);
    100     sprintf (buf, "%d", v);
     100    sprintf (buf, "%u", (uint32) v);
    101101  } else if (bit_number <= 32) {
    102102    uint32 v = *((const uint32*)val);
    103     sprintf (buf, "%d", v);
     103    sprintf (buf, "%u", v);
    104104  } else if (bit_number <= 64) {
    105105    uint64 v = *((const uint64*)val);
    106     sprintf (buf, "%lld", v);
     106    sprintf (buf, "%llu", v);
    107107  }
    108108}
Note: See TracChangeset for help on using the changeset viewer.