Skip to content

Commit 76168ee

Browse files
committed
use size_t
1 parent af58fbb commit 76168ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/solutions/print-in-binary.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ main(int argc, char **argv)
2222
assert(argc == 2);
2323

2424
char a[sizeof (int) * 8];
25-
int i = 1, n = atoi(argv[1]);
25+
size_t i = 1, n = atoi(argv[1]);
2626

2727
assert(n >= 0);
2828
(void) memset(a, '0', sizeof (a));

0 commit comments

Comments
 (0)