mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-06 17:31:14 -03:00
Fix env_universal_common.cpp filesize comparisons.
* if (result == ULLONG_MAX) is always false, likely a typo as result is unsigned long, and the comment says ULONG_MAX. * use off_t instead of size_t for file size where it can mismatch st_size's type in stat.h
This commit is contained in:
@@ -1551,7 +1551,7 @@ class universal_notifier_named_pipe_t : public universal_notifier_t
|
|||||||
// Now return the smaller of the two values
|
// Now return the smaller of the two values
|
||||||
// If we get ULONG_MAX, it means there's no more need to poll; in that case return 0
|
// If we get ULONG_MAX, it means there's no more need to poll; in that case return 0
|
||||||
unsigned long result = mini(readback_delay, polling_delay);
|
unsigned long result = mini(readback_delay, polling_delay);
|
||||||
if (result == ULLONG_MAX)
|
if (result == ULONG_MAX)
|
||||||
{
|
{
|
||||||
result = 0;
|
result = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user