I'm tired :) hookman_autogen
authorPavol Marko <pavolmarko@gmail.com>
Sun Nov 25 01:22:41 2007 +0000 (2007-11-25)
branchhookman_autogen
changeset 479b43ebc944319
parent 478 f2317a2cb421
child 531 0180319136ba
I'm tired :)
sourcehook/sh_pagealloc.h
     1.1 --- a/sourcehook/sh_pagealloc.h	Sun Nov 25 01:20:00 2007 +0000
     1.2 +++ b/sourcehook/sh_pagealloc.h	Sun Nov 25 01:22:41 2007 +0000
     1.3 @@ -66,11 +66,11 @@
     1.4  				alignBytes %= minAlignment;
     1.5  				neededSize += alignBytes;
     1.6  
     1.7 -				if (gap_end - gap_begin >= neededSize)
     1.8 +				if (gapsize >= neededSize)
     1.9  				{
    1.10 -					if (gap_end - gap_begin < smallestgap_size)
    1.11 +					if (gapsize < smallestgap_size)
    1.12  					{
    1.13 -						smallestgap_size = gap_end - gap_begin;
    1.14 +						smallestgap_size = gapsize;
    1.15  						smallestgap_pos = gap_begin;
    1.16  						outAlignBytes = alignBytes;
    1.17  					}