croptool

Image cropping tool
git clone git://lumidify.org/croptool.git (fast, but not encrypted)
git clone https://lumidify.org/git/croptool.git (encrypted, but very slow)
Log | Files | Refs | README | LICENSE

commit 7d46e3125b1c4276ae020e6e0b59e21e08fc54f4
parent a37aa1d0b84cc4a0f231aa8fa211fffce871db65
Author: lumidify <nobody@lumidify.org>
Date:   Thu, 23 Sep 2021 13:36:43 +0200

Fix weird cast

Diffstat:
Mcroptool.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/croptool.c b/croptool.c @@ -422,7 +422,7 @@ setup(int argc, char *argv[]) { cursors.grab = XCreateFontCursor(state.dpy, XC_fleur); /* note: since CACHE_SIZE is <= 1024, this definitely fits in long */ - long cs = (unsigned long long)CACHE_SIZE * 1024 * 1024; + long cs = (long)CACHE_SIZE * 1024 * 1024; if (cs > INT_MAX) { fprintf(stderr, "Cache size would cause integer overflow.\n"); exit(1);