mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-13 17:38:39 +00:00
Windows/PathV2.inc: Eliminate redundant condition. DWORD is unsigned.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127140 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1b5ec068f5
commit
19b6c73878
@ -649,7 +649,7 @@ error_code get_magic(const Twine &path, uint32_t len,
|
|||||||
::CloseHandle(file);
|
::CloseHandle(file);
|
||||||
if (!read_success || (bytes_read != len)) {
|
if (!read_success || (bytes_read != len)) {
|
||||||
// Set result size to the number of bytes read if it's valid.
|
// Set result size to the number of bytes read if it's valid.
|
||||||
if (bytes_read >= 0 && bytes_read <= len)
|
if (bytes_read <= len)
|
||||||
result.set_size(bytes_read);
|
result.set_size(bytes_read);
|
||||||
// ERROR_HANDLE_EOF is mapped to errc::value_too_large.
|
// ERROR_HANDLE_EOF is mapped to errc::value_too_large.
|
||||||
return ec;
|
return ec;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user