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/dev/pktfifo.cc | |
parent | 4e3426624557b555c354035ee3961eab7554d81d (diff) | |
download | gem5-6faf377b5305f9dcc3c7b013c4d67f5accb92617.tar.xz |
types: clean up types, especially signed vs unsigned
Diffstat (limited to 'src/dev/pktfifo.cc')
-rw-r--r-- | src/dev/pktfifo.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dev/pktfifo.cc b/src/dev/pktfifo.cc index 97d6c04af..e5d67d5ec 100644 --- a/src/dev/pktfifo.cc +++ b/src/dev/pktfifo.cc @@ -34,7 +34,7 @@ using namespace std; bool -PacketFifo::copyout(void *dest, int offset, int len) +PacketFifo::copyout(void *dest, unsigned offset, unsigned len) { char *data = (char *)dest; if (offset + len >= size()) @@ -52,7 +52,7 @@ PacketFifo::copyout(void *dest, int offset, int len) if (i == end) panic("invalid fifo"); - int size = min(pkt->length - offset, len); + unsigned size = min(pkt->length - offset, len); memcpy(data, pkt->data, size); offset = 0; len -= size; |