diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-06-08 17:00:08 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-06-08 17:00:08 +0000 |
commit | 393830a33a02d2f7163fcd4b27b7e5d6a46d8bac (patch) | |
tree | 09b1e2f18fac59a2d38bd0370de2c08a6b4d18ff /include/llvm | |
parent | 28962f353b16f34571b3ed3127f7e17e1c0a76f2 (diff) | |
download | external_llvm-393830a33a02d2f7163fcd4b27b7e5d6a46d8bac.zip external_llvm-393830a33a02d2f7163fcd4b27b7e5d6a46d8bac.tar.gz external_llvm-393830a33a02d2f7163fcd4b27b7e5d6a46d8bac.tar.bz2 |
For PR804:
Change the file size field of StatusInfo to be uint64_t instead of size_t
so that we know it is always 64 bits. This prevents some overflow on
systems where size_t is 32 bits when it ought to be 64.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28726 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/System/Path.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/System/Path.h b/include/llvm/System/Path.h index 5cbca9b..bd3a5df 100644 --- a/include/llvm/System/Path.h +++ b/include/llvm/System/Path.h @@ -67,7 +67,7 @@ namespace sys { struct StatusInfo { StatusInfo() : fileSize(0), modTime(0,0), mode(0777), user(999), group(999), isDir(false) { } - size_t fileSize; ///< Size of the file in bytes + uint64_t fileSize; ///< Size of the file in bytes TimeValue modTime; ///< Time of file's modification uint32_t mode; ///< Mode of the file, if applicable uint32_t user; ///< User ID of owner, if applicable |