commit | d73b1cc0fb85b02564aaaa961515357299439c8d | [log] [tgz] |
---|---|---|
author | Nick Wellnhofer <wellnhofer@aevum.de> | Wed Jul 06 19:06:35 2016 +0200 |
committer | Nick Wellnhofer <wellnhofer@aevum.de> | Wed Jul 06 19:06:35 2016 +0200 |
tree | 9bb9cb2f7368e3ecaedcd1c962a71ca3d309b381 | |
parent | 044712a2efcb2b784b31303f0d276c1ebe7a98cc [diff] |
Fix comparison warning on 32-bit systems
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 @@ 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); }