mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-19 20:11:47 +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
5b8ea53689
commit
d0e79b54c9
1 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
/* Implementation of page-related functions for GNUstep
|
/* 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>
|
Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu>
|
||||||
Created: May 1996
|
Created: May 1996
|
||||||
|
@ -60,9 +60,9 @@ unsigned
|
||||||
NSLogPageSize (void)
|
NSLogPageSize (void)
|
||||||
{
|
{
|
||||||
unsigned tmp_page_size = ns_page_size();
|
unsigned tmp_page_size = ns_page_size();
|
||||||
unsigned log = 1;
|
unsigned log = 0;
|
||||||
|
|
||||||
while (tmp_page_size >> 1)
|
while (tmp_page_size >>= 1)
|
||||||
log++;
|
log++;
|
||||||
return log;
|
return log;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue