(NSLogPageSize): Fix logic to return correct value.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2019 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Andrew McCallum 1997-01-06 22:34:37 +00:00
parent fbac142cfb
commit ce365fc853

View file

@ -1,5 +1,5 @@
/* Implementation of page-related functions for GNUstep
Copyright (C) 1996 Free Software Foundation, Inc.
Copyright (C) 1996, 1997 Free Software Foundation, Inc.
Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu>
Created: May 1996
@ -60,9 +60,9 @@ unsigned
NSLogPageSize (void)
{
unsigned tmp_page_size = ns_page_size();
unsigned log = 1;
unsigned log = 0;
while (tmp_page_size >> 1)
while (tmp_page_size >>= 1)
log++;
return log;
}