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.h | |
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.h')
-rw-r--r-- | src/mesa/main/mm.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/main/mm.h b/src/mesa/main/mm.h index 26d59fff139..5ad3ffd6d15 100644 --- a/src/mesa/main/mm.h +++ b/src/mesa/main/mm.h @@ -39,7 +39,8 @@ struct mem_block { struct mem_block *next, *prev; struct mem_block *next_free, *prev_free; struct mem_block *heap; - int ofs,size; + unsigned int ofs; + int size; unsigned int free:1; unsigned int reserved:1; }; @@ -50,7 +51,7 @@ struct mem_block { * input: total size in bytes * return: a heap pointer if OK, NULL if error */ -extern struct mem_block *mmInit(int ofs, int size); +extern struct mem_block *mmInit(unsigned int ofs, int size); /** * Allocate 'size' bytes with 2^align2 bytes alignment, |