From 3ed3ba31adb9c84bcca000a5f31c5278211bd3ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Fri, 19 Feb 2021 12:14:50 +0100 Subject: fix warning --- src/userprog/syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/userprog/syscall.c b/src/userprog/syscall.c index 921ed44..4ff0340 100644 --- a/src/userprog/syscall.c +++ b/src/userprog/syscall.c @@ -90,7 +90,7 @@ read (int fd_i, void *buf, unsigned size) if (fd_i == 0) { // stdin - int i; + unsigned i; for (i = 0; i < size; i++) { ((char *)buf)[i] = input_getc (); } -- cgit v1.2.1