mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
(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:
parent
fbac142cfb
commit
ce365fc853
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue