diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2010-06-09 09:53:11 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2010-06-09 09:53:11 +0000 |
commit | 53444d394fd4b95b9465c4517b3714bb0ce3e0ce (patch) | |
tree | fc4f5a2e3cb7fa39f1d383e38975bfc3b50cd38d /lldb/source/Core/DataBufferMemoryMap.cpp | |
parent | a382d474b6c2264cdcbc85c8d75cb63ea454ce88 (diff) | |
download | bcm5719-llvm-53444d394fd4b95b9465c4517b3714bb0ce3e0ce.tar.gz bcm5719-llvm-53444d394fd4b95b9465c4517b3714bb0ce3e0ce.zip |
A few more minor fixes.
llvm-svn: 105721
Diffstat (limited to 'lldb/source/Core/DataBufferMemoryMap.cpp')
-rw-r--r-- | lldb/source/Core/DataBufferMemoryMap.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Core/DataBufferMemoryMap.cpp b/lldb/source/Core/DataBufferMemoryMap.cpp index c8ad5492f51..9c63bf134db 100644 --- a/lldb/source/Core/DataBufferMemoryMap.cpp +++ b/lldb/source/Core/DataBufferMemoryMap.cpp @@ -97,7 +97,7 @@ DataBufferMemoryMap::GetError() const //---------------------------------------------------------------------- // Memory map "length" bytes from "file" starting "offset" -// bytes into the file. If "length" is set to SIZE_T_MAX, then +// bytes into the file. If "length" is set to SIZE_MAX, then // map as many bytes as possible. // // Returns the number of bytes mapped starting from the requested @@ -137,7 +137,7 @@ DataBufferMemoryMap::MemoryMapFromFileSpec (const FileSpec* file, off_t offset, // containing valid data from a call to stat(). // // Memory map FILE_LENGTH bytes in FILE starting FILE_OFFSET bytes into -// the file. If FILE_LENGTH is set to SIZE_T_MAX, then map as many bytes +// the file. If FILE_LENGTH is set to SIZE_MAX, then map as many bytes // as possible. // // RETURNS @@ -154,7 +154,7 @@ DataBufferMemoryMap::MemoryMapFromFileDescriptor (int fd, off_t offset, size_t l { if ((stat.st_mode & S_IFREG) && (stat.st_size > offset)) { - if (length == SIZE_T_MAX) + if (length == SIZE_MAX) length = stat.st_size - offset; // Cap the length if too much data was requested |