diff options
author | Deron Johnson <deron.johnson@sun.com> | 2005-02-17 22:44:41 +0000 |
---|---|---|
committer | Deron Johnson <deron.johnson@sun.com> | 2005-02-17 22:44:41 +0000 |
commit | e25f8e145f4f73b62c32389b922291fd561af9d2 (patch) | |
tree | 0112775ae632981137d8020d67f325ed99e08570 /src/i810_memory.c | |
parent | 9e8e19c6fde15fe5b9bb7532316dedeeca54b8d9 (diff) |
Joined with branch XORG-6_8_2.lg3d-rel-0-6-2lg3d-masterlg3d-dev-0-7-1lg3d-dev-0-7-0lg3d-dev-0-6-2lg3d-dev-0-6-1-1
Diffstat (limited to 'src/i810_memory.c')
-rw-r--r-- | src/i810_memory.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/i810_memory.c b/src/i810_memory.c index 8b899fbe..75ec2442 100644 --- a/src/i810_memory.c +++ b/src/i810_memory.c @@ -55,7 +55,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. int I810AllocLow(I810MemRange * result, I810MemRange * pool, int size) { - if (size > pool->Size) + if (size > (long)pool->Size) return 0; pool->Size -= size; @@ -69,7 +69,7 @@ I810AllocLow(I810MemRange * result, I810MemRange * pool, int size) int I810AllocHigh(I810MemRange * result, I810MemRange * pool, int size) { - if (size > pool->Size) + if (size > (long)pool->Size) return 0; pool->Size -= size; |