kernel/vm: Fix unsigned/signed comparison warning

This commit is contained in:
Pawel Dziepak 2013-12-20 05:01:13 +01:00
parent c08ed2db65
commit 73363f8dde

View File

@ -4077,7 +4077,7 @@ vm_page_get_stats(system_info *info)
// active + inactive + unused + wired + modified + cached + free + clear
// So taking out the cached (including modified non-temporary), free and
// clear ones leaves us with all used pages.
int32 subtractPages = info->cached_pages + sFreePageQueue.Count()
uint32 subtractPages = info->cached_pages + sFreePageQueue.Count()
+ sClearPageQueue.Count();
info->used_pages = subtractPages > info->max_pages
? 0 : info->max_pages - subtractPages;