From a1f6ffd226efcc0aa42b8a03046a2e1f09786d0d Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Thu, 22 Jun 2023 18:09:41 +0200 Subject: Make scripts capable of 32-bit Windows builds Now binaries can be (cross-)built using GCC for 32- and 64-bit Windows. Additional improvements: - Within MSYS2, try to install the required dependencies automatically. - Within MSYS2, fix passing libdir paths to pkg-config. - Prune documentation from extracted package files, addressing the incredible slowness of Windows filesystem operations. - Fix the script name in README.adoc instructions. --- tiffer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tiffer.h') diff --git a/tiffer.h b/tiffer.h index 1122773..b4e582e 100644 --- a/tiffer.h +++ b/tiffer.h @@ -161,7 +161,7 @@ static bool tiffer_subifd( const struct tiffer *self, uint32_t offset, struct tiffer *subreader) { - if (self->end - self->begin < offset) + if (self->begin > self->end || self->end - self->begin < offset) return false; *subreader = *self; -- cgit v1.2.3-54-g00ecf