mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Broken build on 32 bit: Pending TODO: Reenable assertion.
On a1a0c00589
, an assertion was disabled
because of breaking 32bit build.
This fixes that so that it now always works.
This commit is contained in:
parent
c3fb8240bc
commit
ae4090b2ce
@ -234,9 +234,9 @@ static void fread_idle_cb(uv_idle_t *handle)
|
||||
|
||||
// the offset argument to uv_fs_read is int64_t, could someone really try
|
||||
// to read more than 9 quintillion (9e18) bytes?
|
||||
// DISABLED TO FIX BROKEN BUILD ON 32bit
|
||||
// TODO(elmart): Review types to allow assertion
|
||||
// assert(rstream->fpos <= INT64_MAX);
|
||||
// upcast is meant to avoid tautological condition warning on 32 bits
|
||||
uintmax_t fpos_intmax = rstream->fpos;
|
||||
assert(fpos_intmax <= INT64_MAX);
|
||||
|
||||
// Synchronous read
|
||||
uv_fs_read(
|
||||
|
Loading…
Reference in New Issue
Block a user