summary refs log tree commit diff
path: root/lr.c
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-02-01 22:33:14 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2016-02-01 22:33:14 +0100
commitcd5ea9113c66fca6c7dd49f35188bda8c186dc57 (patch)
tree6258a8c1015a91ca8fcab25a781d9cbf7698f585 /lr.c
parent75157990fbf934ab19847c81981ee31397566308 (diff)
downloadlr-cd5ea9113c66fca6c7dd49f35188bda8c186dc57.tar.gz
lr-cd5ea9113c66fca6c7dd49f35188bda8c186dc57.tar.xz
lr-cd5ea9113c66fca6c7dd49f35188bda8c186dc57.zip
fix type of intlen to not overflow on large file sizes
Diffstat (limited to 'lr.c')
-rw-r--r--lr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lr.c b/lr.c
index 6421800..56f2d77 100644
--- a/lr.c
+++ b/lr.c
@@ -1120,7 +1120,7 @@ order(const void *a, const void *b)
 }
 
 static int
-intlen(int i)
+intlen(intmax_t i)
 {
 	int s;
 	for (s = 1; i > 9; i /= 10)