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/base/atomicio.cc | |
parent | 4e3426624557b555c354035ee3961eab7554d81d (diff) | |
download | gem5-6faf377b5305f9dcc3c7b013c4d67f5accb92617.tar.xz |
types: clean up types, especially signed vs unsigned
Diffstat (limited to 'src/base/atomicio.cc')
-rw-r--r-- | src/base/atomicio.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/base/atomicio.cc b/src/base/atomicio.cc index 3f3e6d6f0..13eeca05b 100644 --- a/src/base/atomicio.cc +++ b/src/base/atomicio.cc @@ -37,7 +37,7 @@ ssize_t atomic_read(int fd, void *s, size_t n) { char *p = reinterpret_cast<char *>(s); - ssize_t pos = 0; + size_t pos = 0; // Keep reading until we've gotten all of the data. while (n > pos) { @@ -66,7 +66,7 @@ ssize_t atomic_write(int fd, const void *s, size_t n) { const char *p = reinterpret_cast<const char *>(s); - ssize_t pos = 0; + size_t pos = 0; // Keep writing until we've written all of the data while (n > pos) { |