about summary refs log tree commit diff
path: root/seq.c
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-10-06 13:15:28 +0200
committerLeah Neukirchen <leah@vuxu.org>2017-10-06 13:15:28 +0200
commit5f45b7d53361bd32ce390e12f814660a98f86aa9 (patch)
tree53612a69e99fcb3c30392e9b682da3b0ff844f3e /seq.c
parentce9ac3aff4bd2fe58132c3ec194269abe4fda4a7 (diff)
downloadmblaze-5f45b7d53361bd32ce390e12f814660a98f86aa9.tar.gz
mblaze-5f45b7d53361bd32ce390e12f814660a98f86aa9.tar.xz
mblaze-5f45b7d53361bd32ce390e12f814660a98f86aa9.zip
use appropriate integer types
Mainly found with clang -Wconversion -Wshorten-64-to-32.
Diffstat (limited to 'seq.c')
-rw-r--r--seq.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/seq.c b/seq.c
index 84a77e1..8a8203a 100644
--- a/seq.c
+++ b/seq.c
@@ -142,7 +142,7 @@ blaze822_seq_cur(void)
 	if (!curlink)
 		curlink = blaze822_home_file("cur");
 
-	int r = readlink(curlink, b, sizeof b - 1);
+	ssize_t r = readlink(curlink, b, sizeof b - 1);
 	if (r < 0)
 		return 0;
 	b[r] = 0;
@@ -308,14 +308,14 @@ parse_parent(char *map, long *starto, long *stopo)
 	char *s, *t;
 	long line;
 
-	int previndent[256] = { 0 };
+	long previndent[256] = { 0 };
 
 	for (s = map, line = 0; s; s = t+1) {
 		t = strchr(s, '\n');
 		if (!t)
 			break;
 		line++;
-		int indent = 0;
+		long indent = 0;
 		while (*s && iswsp(*s)) {
 			s++;
 			indent++;