diff options
author | Elliott Sales de Andrade <quantum.analyst@gmail.com> | 2017-07-01 07:49:59 (GMT) |
---|---|---|
committer | Elliott Sales de Andrade <quantum.analyst@gmail.com> | 2017-09-16 07:54:11 (GMT) |
commit | f117cc16f6ecf991d16737472f75f9328aa423f0 (patch) | |
tree | 1aedffad51f4ec54a1c6fe7cdedc3abd6e718e97 /src/disk_interface.cc | |
parent | d2bf82fef0535bc351a69392c0e0c5edc3aaf69f (diff) | |
download | Ninja-f117cc16f6ecf991d16737472f75f9328aa423f0.zip Ninja-f117cc16f6ecf991d16737472f75f9328aa423f0.tar.gz Ninja-f117cc16f6ecf991d16737472f75f9328aa423f0.tar.bz2 |
Fix some Windows troubles.
Add parentheses so that constant does not overflow; include inttypes.h
when using MinGW to get the proper macros.
Diffstat (limited to 'src/disk_interface.cc')
-rw-r--r-- | src/disk_interface.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/disk_interface.cc b/src/disk_interface.cc index f83151c..4b4c4c7 100644 --- a/src/disk_interface.cc +++ b/src/disk_interface.cc @@ -65,7 +65,7 @@ TimeStamp TimeStampFromFileTime(const FILETIME& filetime) { uint64_t mtime = ((uint64_t)filetime.dwHighDateTime << 32) | ((uint64_t)filetime.dwLowDateTime); // 1600 epoch -> 2000 epoch (subtract 400 years). - return (TimeStamp)mtime - 12622770400LL * 1000000000LL / 100; + return (TimeStamp)mtime - 12622770400LL * (1000000000LL / 100); } TimeStamp StatSingleFile(const string& path, string* err) { |