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:
Eliseo Martínez 2014-04-24 14:06:32 +02:00 committed by Thiago de Arruda
parent c3fb8240bc
commit ae4090b2ce

View File

@ -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(