diff options
Diffstat (limited to 'base/platform_file_posix.cc')
-rw-r--r-- | base/platform_file_posix.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base/platform_file_posix.cc b/base/platform_file_posix.cc index 901c298..4e20e25 100644 --- a/base/platform_file_posix.cc +++ b/base/platform_file_posix.cc @@ -65,7 +65,7 @@ PlatformFile CreatePlatformFile(const FilePath& name, int flags, open_flags |= O_TRUNC; } - DCHECK(O_RDONLY == 0); + COMPILE_ASSERT(O_RDONLY == 0, O_RDONLY_must_equal_zero); int descriptor = open(name.value().c_str(), open_flags, S_IRUSR | S_IWUSR); |