Commit 2dcb9d44 authored by Gaurav Dhol's avatar Gaurav Dhol Committed by Commit Bot

Silence compiler error

base/files/file_win.cc(276,40):  error: non-constant-expression cannot
be narrowed from type 'int' to 'BOOLEAN' (aka 'unsigned char') in initializer list

Bug: 893460
Change-Id: Iab503865c0478c36d70fb8b7b9def152f70cfb7f
Reviewed-on: https://chromium-review.googlesource.com/c/1301576Reviewed-by: default avatardanakj <danakj@chromium.org>
Reviewed-by: default avatarGreg Thompson <grt@chromium.org>
Reviewed-by: default avatarBruce Dawson <brucedawson@chromium.org>
Commit-Queue: Bruce Dawson <brucedawson@chromium.org>
Cr-Commit-Position: refs/heads/master@{#603985}
parent 9575d689
......@@ -273,7 +273,7 @@ File File::Duplicate() const {
}
bool File::DeleteOnClose(bool delete_on_close) {
FILE_DISPOSITION_INFO disposition = {delete_on_close ? TRUE : FALSE};
FILE_DISPOSITION_INFO disposition = {delete_on_close};
return ::SetFileInformationByHandle(GetPlatformFile(), FileDispositionInfo,
&disposition, sizeof(disposition)) != 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment