From: Ben Pfaff Date: Mon, 27 Sep 2004 16:44:38 +0000 (+0000) Subject: Bug fix. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37bb2e4260a06ec1990ca6ee81b850e20e42cf73;p=pintos-anon Bug fix. --- diff --git a/src/lib/kernel/list.c b/src/lib/kernel/list.c index d80a74a..1227d6b 100644 --- a/src/lib/kernel/list.c +++ b/src/lib/kernel/list.c @@ -78,7 +78,7 @@ list_begin (struct list *list) list_elem * list_next (list_elem *elem) { - ASSERT (is_interior (elem)); + ASSERT (is_head (elem) || is_interior (elem)); return elem->next; } diff --git a/src/lib/stdint.h b/src/lib/stdint.h index c7b7839..ef5f214 100644 --- a/src/lib/stdint.h +++ b/src/lib/stdint.h @@ -24,7 +24,7 @@ typedef unsigned short int uint16_t; #define UINT16_MAX 65535 typedef unsigned int uint32_t; -#define UINT32_MAX 4294967295 +#define UINT32_MAX 4294967295U typedef unsigned long long int uint64_t; #define UINT64_MAX 18446744073709551615ULL