Fix comparison warning on 32-bit systems
Project: http://git-wip-us.apache.org/repos/asf/lucy/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/d73b1cc0 Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/d73b1cc0 Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/d73b1cc0 Branch: refs/heads/master Commit: d73b1cc0fb85b02564aaaa961515357299439c8d Parents: 044712a Author: Nick Wellnhofer <wellnho...@aevum.de> Authored: Wed Jul 6 19:06:35 2016 +0200 Committer: Nick Wellnhofer <wellnho...@aevum.de> Committed: Wed Jul 6 19:06:35 2016 +0200 ---------------------------------------------------------------------- core/Lucy/Store/InStream.c | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucy/blob/d73b1cc0/core/Lucy/Store/InStream.c ---------------------------------------------------------------------- diff --git a/core/Lucy/Store/InStream.c b/core/Lucy/Store/InStream.c index f35ace9..273a79e 100644 --- a/core/Lucy/Store/InStream.c +++ b/core/Lucy/Store/InStream.c @@ -344,9 +344,11 @@ InStream_Advance_Buf_IMP(InStream *self, const char *buf) { void InStream_Read_Bytes_IMP(InStream *self, char* buf, size_t len) { +#if SIZE_MAX > INT64_MAX if (len >= INT64_MAX) { THROW(ERR, "Can't read %u64 bytes", (uint64_t)len); } +#endif SI_read_bytes(self, buf, (int64_t)len); }