projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c1c233
)
mesa: Silence 'assignment makes integer from pointer without a cast' warnings.
author
José Fonseca
<jfonseca@vmware.com>
Wed, 10 Oct 2012 10:35:34 +0000
(11:35 +0100)
committer
José Fonseca
<jfonseca@vmware.com>
Wed, 10 Oct 2012 10:35:34 +0000
(11:35 +0100)
src/mesa/main/imports.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/imports.c
b/src/mesa/main/imports.c
index 934a2d05f751d760b83252082b98016e00318ab6..ed324b588df2dd5eac289d00721455795a0b39d1 100644
(file)
--- a/
src/mesa/main/imports.c
+++ b/
src/mesa/main/imports.c
@@
-97,7
+97,7
@@
_mesa_align_malloc(size_t bytes, unsigned long alignment)
ASSERT( alignment > 0 );
- ptr = malloc(bytes + alignment + sizeof(void *));
+ ptr =
(uintptr_t)
malloc(bytes + alignment + sizeof(void *));
if (!ptr)
return NULL;
@@
-146,7
+146,7
@@
_mesa_align_calloc(size_t bytes, unsigned long alignment)
ASSERT( alignment > 0 );
- ptr = calloc(1, bytes + alignment + sizeof(void *));
+ ptr =
(uintptr_t)
calloc(1, bytes + alignment + sizeof(void *));
if (!ptr)
return NULL;