diff options
author | Dave Airlie <[email protected]> | 2008-06-17 16:29:45 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2008-06-17 16:29:45 +1000 |
commit | a1523c61eaa47825f0e4ca9076b83dcca19e1bd1 (patch) | |
tree | 31e12f06b86cfd594e76101ef41b3a119190fe5b /src/mesa/main/mm.c | |
parent | 27b7f896d4492021f8b8c35a69c28f5854ab1f90 (diff) |
mesa: make mm.c use unsigned ints for offsets.
If you have a GPU using this code and it has the offsets up in this space,
this fails.
Diffstat (limited to 'src/mesa/main/mm.c')
-rw-r--r-- | src/mesa/main/mm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/main/mm.c b/src/mesa/main/mm.c index 846c329c70d..fb7809ed221 100644 --- a/src/mesa/main/mm.c +++ b/src/mesa/main/mm.c @@ -53,7 +53,7 @@ mmDumpMemInfo(const struct mem_block *heap) } struct mem_block * -mmInit(int ofs, int size) +mmInit(unsigned int ofs, int size) { struct mem_block *heap, *block; @@ -91,7 +91,7 @@ mmInit(int ofs, int size) static struct mem_block * SliceBlock(struct mem_block *p, - int startofs, int size, + unsigned int startofs, int size, int reserved, int alignment) { struct mem_block *newblock; @@ -164,8 +164,8 @@ mmAllocMem(struct mem_block *heap, int size, int align2, int startSearch) { struct mem_block *p; const int mask = (1 << align2)-1; - int startofs = 0; - int endofs; + unsigned int startofs = 0; + unsigned int endofs; if (!heap || align2 < 0 || size <= 0) return NULL; |