diff options
author | Nathan Binkert <nate@binkert.org> | 2009-06-04 23:21:12 -0700 |
---|---|---|
committer | Nathan Binkert <nate@binkert.org> | 2009-06-04 23:21:12 -0700 |
commit | 6faf377b5305f9dcc3c7b013c4d67f5accb92617 (patch) | |
tree | 0e437fb49a32dd3d2d2bec95a8dc3bdb4ddf05b0 /src/mem/packet.hh | |
parent | 4e3426624557b555c354035ee3961eab7554d81d (diff) | |
download | gem5-6faf377b5305f9dcc3c7b013c4d67f5accb92617.tar.xz |
types: clean up types, especially signed vs unsigned
Diffstat (limited to 'src/mem/packet.hh')
-rw-r--r-- | src/mem/packet.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mem/packet.hh b/src/mem/packet.hh index 672b00e3c..07c086cd5 100644 --- a/src/mem/packet.hh +++ b/src/mem/packet.hh @@ -257,7 +257,7 @@ class Packet : public FastAlloc, public Printable Addr addr; /// The size of the request or transfer. - int size; + unsigned size; /** * Device address (e.g., bus ID) of the source of the @@ -450,7 +450,7 @@ class Packet : public FastAlloc, public Printable void setDest(NodeID _dest) { dest = _dest; flags.set(VALID_DST); } Addr getAddr() const { assert(flags.isSet(VALID_ADDR)); return addr; } - int getSize() const { assert(flags.isSet(VALID_SIZE)); return size; } + unsigned getSize() const { assert(flags.isSet(VALID_SIZE)); return size; } Addr getOffset(int blkSize) const { return getAddr() & (Addr)(blkSize - 1); } /** |